3.0.2 • Published 2 months ago

@bonniernews/exp-logger v3.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

exp-logger

Simple logger package to unify how logging is done with (configurable) remapping

NPM


defaults

  • trace -> DEBUG
  • debug -> DEBUG
  • info -> INFO
  • warn -> WARNING
  • error -> ERROR
  • fatal -> CRITICAL

options

  logLevel // defaults to info
  mixin  // pino mixins, passed down to pino as is

example

const logger = require('@bonniernews/exp-logger')()

logger.info("Hello world")

/* 
-- expected output
[15:19:13.240] INFO: Hello world
*/
3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago