[java-identity-provider] branch main updated: IDP-1903 - Remove logback.xml from idp-core
Scott Cantor
cantor.2 at osu.edu
Wed Mar 2 21:00:10 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=ad5252fcfadb77850074f8e2ace625708717682d
The following commit(s) were added to refs/heads/main by this push:
new ad5252fcf IDP-1903 - Remove logback.xml from idp-core
ad5252fcf is described below
commit ad5252fcfadb77850074f8e2ace625708717682d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Mar 2 16:00:07 2022 -0500
IDP-1903 - Remove logback.xml from idp-core
https://shibboleth.atlassian.net/browse/IDP-1903
Adjust fallback logging config to an internal resource.
---
.../java/net/shibboleth/idp/log/LogbackLoggingService.java | 3 +--
.../src/main/resources/net/shibboleth/idp/conf/logback.xml | 12 ++++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/idp-admin-api/src/main/java/net/shibboleth/idp/log/LogbackLoggingService.java b/idp-admin-api/src/main/java/net/shibboleth/idp/log/LogbackLoggingService.java
index fc65c398a..99f909f23 100644
--- a/idp-admin-api/src/main/java/net/shibboleth/idp/log/LogbackLoggingService.java
+++ b/idp-admin-api/src/main/java/net/shibboleth/idp/log/LogbackLoggingService.java
@@ -115,7 +115,7 @@ public class LogbackLoggingService extends AbstractReloadableService<Object>
throw new ComponentInitializationException("Logging configuration must be specified.");
}
- fallbackConfiguration = new ClassPathResource("/logback.xml");
+ fallbackConfiguration = new ClassPathResource("/net/shibboleth/idp/conf/logback.xml");
loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
statusManager = loggerContext.getStatusManager();
if (!fallbackConfiguration.exists()) {
@@ -126,7 +126,6 @@ public class LogbackLoggingService extends AbstractReloadableService<Object>
+ fallbackConfiguration.getDescription(), this));
}
super.doInitialize();
-
}
/** {@inheritDoc} */
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/logback.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/logback.xml
new file mode 100644
index 000000000..2d40716aa
--- /dev/null
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/logback.xml
@@ -0,0 +1,12 @@
+<configuration>
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <charset>UTF-8</charset>
+ <Pattern>%date{yyyy-MM-dd HH:mm:ss.SSS} [%5level] : %logger: %msg%n</Pattern>
+ </encoder>
+ </appender>
+
+ <root level="warn">
+ <appender-ref ref="STDOUT" />
+ </root>
+</configuration>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list