Open Siroque opened 8 years ago
Link: https://github.com/oasp/oasp4j/blob/develop/samples/server/src/main/resources/logback.xml#L6
So with spring-boot this config is actually correct.
I can not say about your exact setup but a regular tomcat should also be started inside CATALINA_BASE
but in your case it seems to be started inside CATALINA_HOME
(/var/lib/tomcat8
).
You might need to checkup your startup scripts.
However, we should rework and try to find a way to move that actual property out of the XML and reference a property instead that can be configured via spring boots application.properties
somehow. Then everybody will have the freedom to easily tweak and override the settings to his needs.
Meanwhile, just create your own copy of the file and customize to your needs inside your WAR project.
We have found out that the restaurant example application deployment fails with an error: Issue - java.lang.IllegalStateException: Logback configuration error detected: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ERROR_APPENDER] - Failed to create parent directories for [/var/lib/tomcat8/../logs/] It turned out that the app server (Tomcat) have had no permissions by default to write to this path. Hence we had to change the path to be just "logs" (within server/src/main/resources/logback.xml).