After migrating my application from spring 1.5.21 to spring 2.0.9 my logfile on actuator/logfile doesn't work properly when user in tomacat 9.
I am using lib "java.util.logging.Level".
A simple:
Logger.getLogger(Classname.class.getName())
.log(Level.SEVERE, "Teste: " + variable, ex);
doesn't appear on spring.log file.
This file was configured in a .properties file inside Spring boot project, like this:
logging.path=${user.home}/.path/logs/
But somethings are not stored in the file, by example "SPRING BANNER" or every Logger.getLogger command inside my code.
In spring 1.5.21 appeared everything on spring.log file.
I use the IDE Netbeans, and inside netBeans everything is logged properly. But if I deploy the .war file of my application into Tomcat it doesn't appear on actuator/logfile (Stored on spring.log on path told above).
In my pom.xml I changed of:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.21.RELEASE</version>
</parent>
to:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.9.RELEASE</version>
</parent>
Additional information: I Saw that the log instruction appears normally on catalina.out file, but I would like it to work on actuator/logfile;
Can anyone help me with this issue ?
Thank you so much