Socket
Socket
Sign inDemoInstall

ft-next-logger

Package Overview
Dependencies
54
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ft-next-logger

Logging utility


Version published
Weekly downloads
2
Maintainers
4
Install size
4.23 MB
Created
Weekly downloads
 

Readme

Source

Next Logger Circle CI

Logging utility

Usage

var logger = require('ft-next-logger').logger;
logger.info('Saying hello');
logger.warn('Everything’s mostly cool');
logger.error('Uh-oh', { field: 'some value' });

Loggers

By default

  • the console logger is added
    • logs to error if NODE_ENV === test
    • otherwise logger level is set by CONSOLE_LOGGER_LEVEL environment variable, or is set to silly by default
  • the splunk logger is added if NODE_ENV === production

API

  • logger - the Winston object
  • addConsole(level = 'info', opts = {})
  • removeConsole()
  • addSplunk(splunkUrl, level = 'info', opts = {})
  • removeSplunk()
  • clearLoggers()

Releasing

$ make release version=patch

Version also accepts minor and major

FAQs

Last updated on 11 Feb 2016

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