Fancy output with fallback for minimal environments. Consistent command-line interface (CLI) experience. Spam prevention by throttling logs. console uses std in the underlying so calling wrapStd redirects console too. The benefit of this function is that things like console.info will be correctly redirected to the corresponding type. Any instance of consola that inherits the mocked instance, will apply provided callback again. This way, mocking works for withTag scoped loggers without the need for extra effort. Choose between one of the built-in reporters or bring in your own one. By default FancyReporter is registered for modern terminals or BasicReporter will be used if running in limited environments such as CIs. A reporter (class or object) exposes log(logObj) method. To get more info about how to write your own reporter, take a look at the linked implementations.
Features
- Easy to use
- Browser support
- Pluggable reporters
- Pause/Resume support
- Tag support
- Mocking support