net.shibboleth.idp.authn logging
Brian Biggs
brian.biggs at sonoma.edu
Mon Feb 8 11:45:55 EST 2016
Hi,
I'm trying to setup logging to capture only authentication related
events in a single log file. I've read through the docs on the wiki, and
configured logback.xml with a logger and an appender that seem like they
should work.
When I start up shibboleth, the log file I designated in the appender
gets created, but no data ever gets written to that file.
Relevant config entries in logback.xml are:
<variable name="idp.loglevel.idp.authn" value="INFO" />
<logger name="net.shibboleth.idp.authn"
level="${idp.loglevel.idp.authn:-INFO}"/>
<appender name="IDP_AUTHN"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${idp.logfiles}/idp-authn.log</File>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${idp.logfiles}/idp-authn-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>${idp.loghistory:-180}</maxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
<Pattern>%date{ISO8601} - [%mdc{idp.remote_addr}] -
%msg%n%ex{short}</Pattern>
</encoder>
</appender>
<logger name="Shibboleth-Authn" level="ALL">
<appender-ref ref="${idp.authn.appender:-IDP_AUTHN}"/>
</logger>
Am I missing something here? Any help appreciated.
Thanks,
-Brian
--
Brian Biggs
Sonoma State University
More information about the users
mailing list