GT2/GT2-Android/node_modules/logfmt/examples/two_streams.js

12 lines
204 B
JavaScript
Raw Normal View History

var logfmt = require('../logfmt');
logfmt.log({hello: 'stdout'});
//=> hello=stdout
errorLogger = new logfmt;
errorLogger.stream = process.stderr
errorLogger.log({hello: 'stderr'});
//=> hello=stderr