idp log files
Ramaiah, Vanna G.
ramaiah at musc.edu
Mon Jul 17 15:34:07 EDT 2017
I added the below logger. Still not working. I am trying to create a new log file in /idp/log folder called idp-access.log and keep it appending with only needed attributes whenever users access shib.
<logger name="Shibboleth-Access" level="ALL">
<appender-ref ref="${idp.access.appender:-IDP_ACCESS}"/>
</logger>
<appender name="IDP_ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${idp.logfiles}/idp-access.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${idp.logfiles}/archive/idp-access-%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>%msg%n</Pattern>
</encoder>
</appender>
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Monday, July 17, 2017 3:13 PM
To: Shib Users <users at shibboleth.net>
Subject: RE: idp log files
> I would like add a log file idp-access.log with customized logs in the
> idp/log folder. Could you please let me know how to proceed. I tried
> adding a files same as idp-audit configuration in logback.xml. what else am I missing?
Anything that would log to that appender I would imagine. Adding an appender doesn't connect any logging categories to it.
What are you trying to do exactly?
-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list