|
|
|
|
@ -54,7 +54,8 @@ class DefaultLogbackConfiguration {
@@ -54,7 +54,8 @@ class DefaultLogbackConfiguration {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void apply(LogbackConfigurator config) { |
|
|
|
|
synchronized (config.getConfigurationLock()) { |
|
|
|
|
config.getConfigurationLock().lock(); |
|
|
|
|
try { |
|
|
|
|
defaults(config); |
|
|
|
|
Appender<ILoggingEvent> consoleAppender = consoleAppender(config); |
|
|
|
|
if (this.logFile != null) { |
|
|
|
|
@ -65,6 +66,9 @@ class DefaultLogbackConfiguration {
@@ -65,6 +66,9 @@ class DefaultLogbackConfiguration {
|
|
|
|
|
config.root(Level.INFO, consoleAppender); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
finally { |
|
|
|
|
config.getConfigurationLock().unlock(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void defaults(LogbackConfigurator config) { |
|
|
|
|
|