elastic / ecs-logging-java

https://www.elastic.co/guide/en/ecs-logging/java/current/intro.html
Apache License 2.0
139 stars 74 forks source link

Changing default file name and log rotation #139

Closed harshitgoel96 closed 2 years ago

harshitgoel96 commented 2 years ago

Hi, The default behaviour of the logback logger is to append .json to the default log file name, I want change this, and remove .json from the file name,

also i want to add rotation policy, what can be done for that? I can not find any documentation for these two changes.

harshitgoel96 commented 2 years ago

Ok, looking at the default ecs-file-appender.xml file, got to know its defined as RollingFileAppender, removing the default ECS include, and making new appender with ecs encoder works.

It would be a good idea to add this in docs