Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@invisible/logger

Package Overview
Dependencies
Maintainers
10
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisible/logger

Invisible Logging Wrapper

  • 4.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

logger

CircleCI

Invisible Logging Wrapper.

Install

yarn add @invisible/logger

Usage

const logger = require('@invisible/logger')

logger.debug('This is a debug message', { meta: true })

Make sure to set LOGGER_LEVEL = silly on your development environment.

Default Transports

Console

Will only be colorized in development. The default logging level is info, but you can use the LOGGER_LEVEL environment variable to adjust the logging level.

Disabled by default in test env, but can be overriden if LOGGER_ENABLED_IN_TEST is true.

Timber

To use Timber, you'll need to define LOGGER_TIMBER as true in your environment variable and redirect the drain of your Heroku app to the drain address in Timber. You can also use the TIMBER_LEVEL environment variable to set the logging level. Setting up Timber deactivates the default Console transport.

Additional Transports

You can add an additional transport with

const logger = require('@invisible/logger')

logger.add(winston.transports.File, { filename: 'somefile.log' })

Keywords

FAQs

Package last updated on 21 Sep 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc