@loglayer/transport-tslog
v1.0.4
Published
tslog transport for loglayer.
Downloads
273
Maintainers
Readme
tslog Transport for LogLayer
The tslog transport for LogLayer.
tslog provides powerful, fast and expressive logging for TypeScript and JavaScript.
Installation
npm install loglayer @loglayer/transport-tslog tslog
Usage
import { LogLayer } from 'loglayer'
import { TracerTransport } from '@loglayer/transport-tslog'
import { Logger, ILogObj } from "tslog";
const tslog: Logger<ILogObj> = new Logger();
const log = new LogLayer({
transport: new TsLogTransport({
logger: tslog,
})
})
Documentation
For more details, visit https://loglayer.dev/transports/tslog