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.0.0
  • 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' });

(Uses Winston, so see here for full api)

Loggers

By default

  • the console logger is added if NODE_ENV !== production
  • the splunk logger is added if NODE_ENV === production and there is a SPLUNK_URL env variable

API

  • addConsole(level = 'info', opts = {})
  • removeConsole()
  • addSplunk(splunkUrl, level = 'error', opts = {})
  • removeSplunk()
  • clearLoggers()

Releasing

$ make release version=patch

Version also accepts minor and major

FAQs

Package last updated on 22 Oct 2015

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