Signale Transport
Signale is a highly configurable logging utility designed for CLI applications.
Important Notes
- Signale only works in Node.js environments (not in browsers)
- It is primarily designed for CLI applications
- LogLayer only integrates with standard log levels (not CLI-specific levels like
success
,await
, etc.)
Installation
Install the required packages:
sh
npm i loglayer @loglayer/transport-signale signale
sh
pnpm add loglayer @loglayer/transport-signale signale
sh
yarn add loglayer @loglayer/transport-signale signale
Setup
typescript
import { Signale } from 'signale'
import { LogLayer } from 'loglayer'
import { SignaleTransport } from "@loglayer/transport-signale"
const signale = new Signale()
const log = new LogLayer({
transport: new SignaleTransport({
logger: signale
})
})
Log Level Mapping
LogLayer | Signale |
---|---|
trace | debug |
debug | debug |
info | info |
warn | warn |
error | error |
fatal | error |