@etrigan/logging-multi
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Etrigan Logging

This project is the same as @etrigan/logging except it supports logging to multiple streams (console and file for instance). This is not the recommended pino way, but we need to do this for legacy reasons.

Usage

Logger

import logging from 'etrigan/logging-multi'

// If a logfile is specified pino-multi-stream is configured
// otherwise it will use plain pino for speed reasons
const log = logging.createLogger({
    name: 'MyService',
    logfile: process.env.LOG_FILE,
})

Readme

Keywords

none

Package Sidebar

Install

npm i @etrigan/logging-multi

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

11.8 kB

Total Files

16

Last publish

Collaborators

  • wimomisterx
  • jakeginnivan