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

12 lines
204 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
var logfmt = require('../logfmt');
logfmt.log({hello: 'stdout'});
//=> hello=stdout
errorLogger = new logfmt;
errorLogger.stream = process.stderr
errorLogger.log({hello: 'stderr'});
//=> hello=stderr