Remove auto createConsoleAppender from createLogManager
Closed this issue · 3 comments
rottmann commented
https://github.com/darrylwest/simple-node-logger/blob/master/lib/SimpleLogger.js#L319-L322
I want to use the console and rollingFile.
The console should be formated with an own formatter, but this is not possible, when auto create the consoleAppender with createLogManager
rottmann commented
I want to colorize the console output depending on the LogLevel.
rottmann commented
I manually set now the appenders and create my own ColoredConsoleAppender.
let appenders = [
new ColoredConsoleAppender(),
manager.createRollingFileAppender({
errorEventName: 'error',
logDirectory: logPath,
fileNamePattern: '<DATE>.log',
dateFormat:'YYYYMMDD'
})
]
let logger = manager.createLogger()
logger.setAppenders(appenders)
seeARMS commented
Can you share your ColoredConsoleAppender?