Socket
Socket
Sign inDemoInstall

@bonniernews/exp-logger

Package Overview
Dependencies
48
Maintainers
33
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bonniernews/exp-logger

Simple bootstrapping of pino logger


Version published
Weekly downloads
825
decreased by-19.12%
Maintainers
33
Install size
2.62 MB
Created
Weekly downloads
 

Readme

Source

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
*/

FAQs

Last updated on 27 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc