<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div id="appendonsend" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> users <users-bounces@shibboleth.net> on behalf of Cantor, Scott <cantor.2@osu.edu><br>
<b>Sent:</b> Monday, January 25, 2021 3:53 PM<br>
<b>To:</b> Shib Users <users@shibboleth.net><br>
<b>Subject:</b> Re: Getting a Response header into the logback logs</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 1/25/21, 5:44 PM, "users on behalf of Crawford, Jeffrey" <users-bounces@shibboleth.net on behalf of jcrawford@it.ucla.edu> wrote:<br>
<br>
>    We need to print the content of an "X-Request-ID" header into our shibboleth logs it doesn't seem like the encoder<br>
> supports the %header{key} pattern, What would be the best way to print the content of that header in the logback logs in<br>
> logback.xml<br>
<br>
I don't think you could convert the PatternLayoutEncoder class in the appender into the logback-access version but the worst that can happen is it breaks so I guess it's a possibility.<br>
<br>
Otherwise you'd have to write a Java filter to add to the MDC.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Forgive the probably silly question but where would be an appropriate way to add this? Assuming that we don't want to update the base code. More like a deployer type hook, feel free to point me to documentation</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Thanks,<br>
Jeffrey C.<br>
<br>
-- Scott<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg">
https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br>
</div>
</span></font></div>
</body>
</html>