-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I setup my daily rolling logfile at app startup, this way:
var fileLog = SimpleNodeLogger.createRollingFileLogger({
logDirectory: path.dirname(process.execPath) + '/logs',
fileNamePattern: '<DATE>.log',
dateFormat: 'YYYY-MM-DD'
});
fileLog.setLevel('warn');
This way my program creates 1 logfile each day, even if nothing is logged. So I can end up with many empty logfiles.
Is it possible to tell SimpleNodeLogger to create the file only when I actually need to log something?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels