Defect #3236
openIdM generates extra logs in the Tomcat temp folder
80%
Description
Superfluous logs are generated by the IdM. This can lead to some issues if the temp folder is not cleaned (long uptime).
It is not clear what is causing this.
Updated by Tomáš Doischer almost 2 years ago
- Tracker changed from Task to Defect
- Affected versions 12.2.4 added
Updated by Tomáš Doischer almost 2 years ago
- Status changed from New to In Progress
- Assignee set to Tomáš Doischer
Updated by Tomáš Doischer almost 2 years ago
Nice thread on the topic:
https://stackoverflow.com/questions/50386520/spring-boot-spring-log-under-tmp
https://github.com/spring-projects/spring-boot/issues/12538
TL;DR: logback.xml config file shouldn't contain
<include resource="org/springframework/boot/logging/logback/base.xml"/>
but
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
A simple change but I will first test it.
Updated by Tomáš Doischer almost 2 years ago
- % Done changed from 0 to 60
This does seem to do the trick. I tested this in a local instance of Tomcat and just manually changed the lockback-spring.xml file. The spring.log file was created in temp but is empty.
Otherwise, logging looks normal but we will need to discuss this ruther.
Updated by Tomáš Doischer almost 2 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Tomáš Doischer to Peter Štrunc
- % Done changed from 60 to 80
Updated by Petr Fišer over 1 year ago
Tomáš Doischer wrote in #note-4:
TL;DR: logback.xml config file shouldn't contain
> <include resource="org/springframework/boot/logging/logback/base.xml"/> >
but
> <include resource="org/springframework/boot/logging/logback/defaults.xml" /> >
A simple change but I will first test it.
FYI
In case this is the only change that is necessary, then (99% sure) we don't need to adjust container runscripts.