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

12 lines
204 B
JavaScript

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