简体   繁体   中英

How to create logger's zip file of last 5 days in spring boot using log4j?

I follow this example but this example use xml file. I want to use properties file.

https://examples.javacodegeeks.com/enterprise-java/logback/logback-rollingfileappender-example/

Refer below link on how it can be configured using different options like YAML/JSON/Properties

https://logging.apache.org/log4j/2.x/manual/configuration.html

specific to properties:

https://springframework.guru/log4j-2-configuration-using-properties-file/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM