On upgrading to Spring Boot 2.3.0 (from 2.2.6), my application stopped logging to a file. No configuration changes were made. If I downgrade back to 2.2.7, with no change of configuration, then it starts logging again correctly.
I have, in my application.yml
, the following configuration:
logging:
level:
root: WARN
my.package: INFO
file: portal.log
Comment From: wilkinsona
logging.file
was deprecated and renamed to logging.file.name
in 2.2. It was then removed in 2.3.
We should update the configuration change log for 2.3 to note its removal.
Comment From: mbhave
Change log for 2.3 now mentions the property in the removed keys section.
Comment From: exic
You might want to add logging.file.path
, too – I assume it was removed together with logging.file.name
since it was deprecated at the same time?
Comment From: wilkinsona
Thanks, @exic. logging.file.path
is still a supported property. I guess you meant logging.path
? I've updated the change log to note its removal and that logging.file.path
is its replacement.
Comment From: exic
Yeah that's what I meant. Thanks for reading my thoughts, enjoy your day 😅