I'm currently dealing with external logging properties for the application I'm building. I have a custom properties file called myapp.properties. It contains some custom properties and some environment-specific Spring properties like SSL and server port(including logging).
The custom properties file works just fine for all properties, except for the logging.level.* properties, which are just plainly ignored.
For example, when I use this property in my custom myapp.properties:
server.port=12345.
It works just fine: s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 12345 (http)
However, when I try the same thing for the logging properties:
logging.level.root=ERROR
It still logs other messages: 2017-05-10 12:32:54.984 INFO 9188 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http).
Anyone knows what could possibly be a solution for this problem?
myapp.properties?PropertySourcesPlaceholderConfigurer.