How does loading logback.xml file work? in particular, when is it loaded?
I see this explanation all over the Internet:
- Logback tries to find a file called logback.groovy in the classpath.
- If no such file is found, logback tries to find a file called logback-test.xml in the classpath.
- If no such file is found, it checks the logback.xml file in the classpath.
- If no files are found, the log is automatically configured automatically using BasicConfigurator, which will cause the log to be displayed on the console.
But without mentioning when it is loaded. Is this the first call to a registration operator?
Noremac
source share