@loglayer/transport-consola
v1.0.8
Published
consola transport for loglayer.
Downloads
622
Maintainers
Readme
Consola Transport for LogLayer
The Consola transport for LogLayer.
Consola is an elegant and configurable console logger for Node.js and browser.
Installation
npm install loglayer @loglayer/transport-consola consola
Usage
import { createConsola } from 'consola'
import { LogLayer } from 'loglayer'
import { ConsolaTransport } from "@loglayer/transport-consola"
const log = new LogLayer({
transport: new ConsolaTransport({
logger: createConsola({
level: 5 // Enable all log levels
})
})
})
Important Notes
- The default log level is
3
which excludesdebug
andtrace
- Set level to
5
to enable all log levels
Documentation
For more details, visit https://loglayer.dev/transports/consola