Is is possible to configure a daily file appender within the application.yml of a Spring Boot application?
i.e. filenamePattern: myfile.%d{yyyy-MM-dd-HH-mm-ss}.log>
You can also configure rolling policy based on file size in your logback-spring.xml. In the below, we are specifying max file size as 10MB for SizeBasedTriggeringPolicy:
SizeBasedTriggeringPolicy
${FILE_LOG_PATTERN} ${LOG_FILE} ${LOG_FILE}.%i.gz 1 10 10MB