Hi,
After i built the executable and run it, it does not check the logging.config property in application.properties file. I tried to change the logging.config to wrong logback config file path, but no error comes out about it.
Spring boot version: 3.0.7
Build method: Using base image ghcr.io/graalvm/graalvm-ce:22.3.1 to build exe with command mvnw native:compile -Pnative, with maven plugin native-maven-plugin
Plugin configuration:
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs>
<arg>-H:+AddAllCharsets</arg>
<arg>-H:+TraceSecurityServices</arg>
<arg>-H:+ReportExceptionStackTraces</arg>
</buildArgs>
</configuration>
</plugin>
Is it the case that it will not check this property? I am pretty sure it works for jar file executable. If so, how do I make it configurable? My use case is that I need to deploy this app to Windows/Linux servers, whereby the file path can be different.
Thanks, Kae Yan
Comment From: wilkinsona
As described in the wiki, XML-based logging configuration is processed at build time and stored in the native image in a more efficient format. It therefore cannot be changed at runtime.