spring-boot 2.7.2 As stated in the docs at https://docs.spring.io/spring-boot/docs/2.7.2/reference/html/features.html#features.logging.file-rotation the log file rotates on a per day basis and when it reaches 10MB. This is working fine when configured in application.yaml ``` logging: file: name: my/path/application.log ``` However this feature stops working when the log file is configured by the environment variable `LOG_FILE` ``` LOG_FILE=my/path/application.log ``` We would expect the same (rotation) behaviour in both cases since the environment variable is the yaml equivalent according to https://docs.spring.io/spring-boot/docs/2.7.2/reference/html/features.html#features.logging.custom-log-configuration.
spring-boot 2.7.2
As stated in the docs at https://docs.spring.io/spring-boot/docs/2.7.2/reference/html/features.html#features.logging.file-rotation the log file rotates on a per day basis and when it reaches 10MB.
This is working fine when configured in application.yaml
However this feature stops working when the log file is configured by the environment variable
LOG_FILEWe would expect the same (rotation) behaviour in both cases since the environment variable is the yaml equivalent according to https://docs.spring.io/spring-boot/docs/2.7.2/reference/html/features.html#features.logging.custom-log-configuration.