Is it possible to tell SLF4J that my logging configuration file is on the path X and no matter what logging implementation I choose the underlying implementation should pick up that file on the path X?
Asked
Active
Viewed 1,772 times
0
-
SLF4J will pick up configuration file from root application classpath automatically. – fg78nc Jul 15 '17 at 13:32
-
Yes. I googled and found that logback conf file location can be set like this `System.setProperty("logback.configurationFile", "/path/to/config.xml")`. I wonder if there is a similar way to set file location in the code despite underlying logging implementation – user435421 Jul 15 '17 at 13:36
-
Why would you want to do that and not use automatic discovery? – fg78nc Jul 15 '17 at 13:50