I am trying to use logging.file.name
in application.properties file to log my application based on date but I can not get current date. I have tried
logging.file.name=logs/LogFile.%d{yyyy-MM-dd}.log
but logs are printed to LogFile.%d{yyyy-MM-dd}.log
under logs
file but not LogFile-2024-05-21.log
. How can I specify log file name with current date.
P.S.: I use lombok’s @Log4j2
annotation