[minor] fix jsstyle issues in example

This commit is contained in:
Patrick Mooney 2014-07-31 20:49:01 -05:00
parent 042e2c0fc9
commit 2ed6df0834

View file

@ -18,19 +18,24 @@ if (fs.statSync(FILENAME).mode & S_IWUSR) {
fs.chmodSync(FILENAME, 0444);
}
console.warn('- Create logger.')
var log = bunyan.createLogger({name: 'handle-fs-error', streams: [{path: FILENAME}]});
console.warn('- Create logger.');
var log = bunyan.createLogger({
name: 'handle-fs-error',
streams: [
{path: FILENAME}
]
});
log.on('error', function (err) {
console.warn('- The logger emitted an error:', err);
});
console.warn('- Call log.info(...).')
console.warn('- Call log.info(...).');
log.info('info log message');
console.warn('- Called log.info(...).')
console.warn('- Called log.info(...).');
setTimeout(function () {
console.warn('- Call log.warn(...).')
console.warn('- Call log.warn(...).');
log.warn('warn log message');
console.warn('- Called log.warn(...).')
console.warn('- Called log.warn(...).');
}, 1000);