You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use express-bunyan-logger as child logger of bunyan. My config is:
var logExpressConfig = {
type: 'app-express'
};
var logExpressExcludes = [
'user-agent',
'body',
'short-body',
'req-headers',
'res-headers',
'req',
'res',
'incoming',
'response-hrtime'
]
var logger = bunyan.createLogger(logConfig);
var expressLogger = logger.child(logExpressConfig);
module.exports = logger;
module.exports.expressLogger = {
logger: expressLogger,
excludes: logExpressExcludes,
}
var expressLogger = require('../logger.js').expressLogger;
var logger = require('express-bunyan-logger')(expressLogger);
app.use(logger);
Is there way to get rid of brackets from console? Output is formated with bunyan -o short. I'm sorry if this is not problem of this package.
13:07:57.038Z INFO app: ::1 <-- GET /login HTTP/1.1 304 - http://localhost:3000/ Chrome 41.0 Mac OS X 10.10.3 253.729234 ms (req_id=180869c9-c85d-4082-99fb-08efa77685ee, type=app-express, remote-address=::1, ip=::1, method=GET, url=/login, referer=http://localhost:3000/, http-version=1.1, response-time=253.729234, status-code=304)
The text was updated successfully, but these errors were encountered:
Hello,
I use
express-bunyan-logger
as child logger of bunyan. My config is:Is there way to get rid of brackets from console? Output is formated with
bunyan -o short
. I'm sorry if this is not problem of this package.The text was updated successfully, but these errors were encountered: