Next Logger
Logging utility
Usage
var loggerInit = require('ft-next-logger').init;
# init first, setting the app's name
loggerInit({ appName: 'ft-next-front-page' });
var logger = require('ft-next-logger').logger;
logger.info('Saying hello');
logger.warn('Everything’s mostly cool');
logger.error('Uh-oh', { field: 'some value' });
of if you're living in the wonderfule world of JavaScript modules,
import {init as loggerInit, logger} from 'ft-next-logger';
# init first, setting the app's name
loggerInit({ appName: 'ft-next-front-page' });
logger.info('Saying hello');
...
(Uses Winston, so see here for full api)