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
But i don't reach to do specific level with "rotating-file"
I am stuck with this and don't reach to found a solution
Here my configuration file :
var NODE_ENV = process.env.NODE_ENV || 'local';
var config = require('../../config.json')[NODE_ENV];
var path = config.logs.path; // like "./utils/logs/"
var configLogger = {
name : "xxxxxxxx",
streams : []
};
/************************* ***************************/
/*************** STREAM IN FILES ****************/
var levels = ['debug', 'info', 'warn', 'error', 'trace'];
var _logLevel = function (level) {
return {
type : 'rotating-file',
period : '1w',
count : 52,
level : level,
path : path + 'application-' + level + '.log'
};
};
levels.forEach(function (level) {
configLogger.streams.push(_logLevel(level));
}, this);
/****************** END FILES *******************/
Hi,
I'm trying to stop logs be print in lower level, but I don't find a solution for it :
I already see issues : #334 #320 #339 #305 and some others,
And also inspect https://github.com/trentm/node-bunyan/blob/master/examples/specific-level-streams.js
But i don't reach to do specific level with "rotating-file"
I am stuck with this and don't reach to found a solution
Here my configuration file :
So at the end,
configLogger likes :
and I
configLogger.level = "trace"; module.exports = require('bunyan').createLogger(configLogger);
I'm here asking your help using bunyan ;)
Thanks for helping
The text was updated successfully, but these errors were encountered: