Spring Boot Log4j 2 advanced configuration #2 – add a Rollover Strategy for log files
We don’t want to allocate too much space for our log files. Let’s see how we can manage their livespan.
We don’t want to allocate too much space for our log files. Let’s see how we can manage their livespan.
Apart from having logs displayed directly in the console, we can configure our Spring Boot project to write log entries into files. It not only allows us to easily store and share logs for debugging, but also can be the first step towards browsing them in Kibana.