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

ft-next-logger

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ft-next-logger

Logging utility

  • 4.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
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

Package last updated on 19 Jan 2016

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