@loglayer/transport-consola
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Consola Transport for LogLayer

NPM Version NPM Downloads TypeScript

The Consola transport for the LogLayer logging library.

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 excludes debug and trace
  • Set level to 5 to enable all log levels

Documentation

For more details, visit https://loglayer.dev/transports/consola

Package Sidebar

Install

npm i @loglayer/transport-consola

Homepage

loglayer.dev

Weekly Downloads

437

Version

2.1.1

License

MIT

Unpacked Size

10.6 kB

Total Files

9

Last publish

Collaborators

  • theo.gravity