Configuration needed in logging.xml to get the header text
kotesh201
koteshwarv at gmail.com
Thu Oct 10 16:54:03 EDT 2013
Hi All,
I am referring to ->
https://wiki.shibboleth.net/confluence/display/SHIB2/IdPLogging
The idp-audit.log written in the machine parsable format like below.
auditEventTime|requestBinding|requestId|relyingPartyId|messageProfileId|assertingPartyId|responseBinding|responseId|principalName|authNMethod|releasedAttributeId1,releasedAttributeId2,|nameIdentifier|assertion1ID,assertion2ID,|
I would like to write the above Header text in the idp-audit.log file as a
first line for debugging purposes.
What else should I add to below configuration in order to have the Header
text as first line in the log file.
<appender name="IDP_AUDIT"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>C:/logs/idp-audit.log</File>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>C:/logs/idp-audit-%d{yyyy-MM-dd}.log</FileNamePattern>
</rollingPolicy>
<encoder
class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
<Pattern>%msg%n</Pattern>
</encoder>
</appender>
Thanks,
Kotesh
--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Configuration-needed-in-logging-xml-to-get-the-header-text-tp7590528.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.
More information about the users
mailing list