[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/conf/logback.xml

noreply at shibboleth.net noreply at shibboleth.net
Fri Nov 6 22:35:10 EST 2015


Author: scantor
Date: Fri Nov  6 22:35:10 2015
New Revision: 7967

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7967&view=rev
Log:
IDP-852 / IDP-823 - Proposal for new logback config, async config also included

Modified:
    trunk/idp-conf/src/main/resources/conf/logback.xml

Modified: trunk/idp-conf/src/main/resources/conf/logback.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/logback.xml?rev=7967&r1=7966&r2=7967&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/logback.xml	(original)
+++ trunk/idp-conf/src/main/resources/conf/logback.xml	Fri Nov  6 22:35:10 2015
@@ -1,39 +1,73 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <configuration>
 
+    <!--
+    Variables for simplifying logging configuration.
+    http://logback.qos.ch/manual/configuration.html#variableSubstitution
+    -->
+    
+    <variable name="idp.logfiles" value="${idp.home}/logs" />
+    <variable name="idp.loghistory" value="180" />
+    
+    <!-- Much higher performance if you operate on DEBUG. -->
+    <!-- <variable name="idp.process.appender" value="ASYNC_PROCESS" /> -->
+    
+    <!-- Logging level shortcuts. -->
+    <variable name="idp.loglevel.idp" value="INFO" />
+    <variable name="idp.loglevel.opensaml" value="INFO" />
+    <variable name="idp.loglevel.ldap" value="WARN" />
+    <variable name="idp.loglevel.messages" value="INFO" />
+    <variable name="idp.loglevel.encryption" value="INFO" />
+    <variable name="idp.loglevel.props" value="INFO" />
+    
+    <!-- Don't turn these up unless you want a *lot* of noise. -->
+    <variable name="idp.loglevel.spring" value="ERROR" />
+    <variable name="idp.loglevel.container" value="ERROR" />
+    <variable name="idp.loglevel.xmlsec" value="INFO" />
+    
+    <!-- Syslog address for F-TICKS (see FTICKSLoggingConfiguration). -->
+    <variable name="idp.fticks.loghost" value="localhost" />
+    <variable name="idp.fticks.logport" value="514" />
+
+    <!--
+    If you want to use custom properties in this config file,
+    we load the main property file for you.
+    -->
+    <variable file="${idp.home}/conf/idp.properties" />
+    
+    <!-- =========================================================== -->
+    <!-- ============== Logging Categories and Levels ============== -->
+    <!-- =========================================================== -->
+
     <!-- Logs IdP, but not OpenSAML, messages -->
-    <logger name="net.shibboleth.idp" level="INFO"/>
+    <logger name="net.shibboleth.idp" level="${idp.loglevel.idp:-INFO}"/>
 
     <!-- Logs OpenSAML, but not IdP, messages -->
-    <logger name="org.opensaml.saml" level="INFO"/>
+    <logger name="org.opensaml.saml" level="${idp.loglevel.opensaml:-INFO}"/>
     
     <!-- Logs LDAP related messages -->
-    <logger name="org.ldaptive" level="WARN"/>
+    <logger name="org.ldaptive" level="${idp.loglevel.ldap:-WARN}"/>
     
     <!-- Logs inbound and outbound protocols messages at DEBUG level -->
-    <!--
-    <logger name="PROTOCOL_MESSAGE" level="DEBUG" />
-    -->
+    <logger name="PROTOCOL_MESSAGE" level="${idp.loglevel.messages:-INFO}" />
 
     <!-- Logs unencrypted SAML at DEBUG level -->
-    <!--
-    <logger name="org.opensaml.saml.saml2.encryption.Encrypter" level="DEBUG" />
-    -->
+    <logger name="org.opensaml.saml.saml2.encryption.Encrypter" level="${idp.loglevel.encryption:-INFO}" />
 
-    <!-- Logs standard system properties during startup at DEBUG level -->
-    <!-- 
-    <logger name="net.shibboleth.idp.log.LogbackLoggingService" level="DEBUG" />
-    -->
+    <!-- Logs system properties during startup at DEBUG level -->
+    <logger name="net.shibboleth.idp.log.LogbackLoggingService" level="${idp.loglevel.props:-INFO}" />
 
     <!-- Especially chatty. -->
     <logger name="net.shibboleth.idp.saml.attribute.mapping" level="INFO" />
-   
-    <logger name="org.apache.xml.security" level="INFO" />
-    <logger name="org.springframework" level="ERROR"/>
-    <logger name="org.apache.catalina" level="ERROR"/>
-    <logger name="org.eclipse.jetty" level="ERROR"/>
-    
-    <!-- Note that ${idp.home} is the only property available for variable substitution. -->
+    <logger name="org.apache.xml.security" level="${idp.loglevel.xmlsec:-INFO}" />
+    <logger name="org.springframework" level="${idp.loglevel.spring:-ERROR}"/>
+    <logger name="org.apache.catalina" level="${idp.loglevel.container:-ERROR}"/>
+    <logger name="org.eclipse.jetty" level="${idp.loglevel.container:-ERROR}"/>
+
+
+    <!-- =========================================================== -->
+    <!-- ============== Low Level Details or Changes =============== -->
+    <!-- =========================================================== -->
     
     <!-- Process log. -->
     <appender name="IDP_PROCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
@@ -41,7 +75,7 @@
         
         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">

[... 105 lines stripped ...]


More information about the commits mailing list