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
"pattern": "-yyyy-MM-dd", will result in Application.-2020-08-07 instead of Application-2020-08-07.
There is an additional . separator, despite not being declared in the pattern.
Hi
I am using log4js version 6.2.1
I have configure logs level with following way in json file.
{ "appenders": { "Application": { "type": "dateFile", "filename": "logs/Application", "alwaysIncludePattern": true, "category": "Application", "layout": { "type": "pattern", "pattern": "<log timestamp=\"%d{yyyy-MM-dd hh:mm:ss.SSS}\" level=\"%5.5p\"><message>%m</message></log>" } }, "Database": { "type": "dateFile", "filename": "logs/Database", "alwaysIncludePattern": true, "category": "Database", "layout": { "type": "pattern", "pattern": "<log timestamp=\"%d{yyyy-MM-dd hh:mm:ss.SSS}\" level=\"%5.5p\"><message>%m</message></log>" } } } }
it is creating logs files daily with default name pattern like
Application.2020-08-07
Database.2020-08-07
I want to create file name with hyphen, like
Application-2020-08-07
Database-2020-08-07
is there any configuration to use custom file name?
The text was updated successfully, but these errors were encountered: