New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

json-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-logger

Super simple newline delimited printer (to stdout) similar to debug module

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

json-logger

Super simple logger (similar to debug) prints newline delimited json to stdout.

Usage

var log = require('json-logger')({
  user: 'foobar'
});

log('critical error', { message: 'You failed.' });
// will log
// { type; 'critical error', message: 'you failed', user: 'foobar' }

See the examples folder for usage the output is tested there as well...

FAQs

Package last updated on 21 Aug 2014

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