Logging for an HTTP client bean
Wessel, Keith
kwessel at illinois.edu
Mon Dec 11 19:43:42 UTC 2023
Really? I'm almost positive I've changed logging behavior with properties in idp.properties before.
I was under the impression that a property set in any of the property files would get picked up in logback.xml. If not, why the reference to it in the initial mention in logback.xml?
<variable name="idp.loglevel.httpclient" value="${idp.loglevel.httpclient:-INFO}" />
Seems like that means to use the external value if set and, if not, set it to INFO so that it gets used later in the logback.xml file:
<logger name="org.apache.http" level="${idp.loglevel.httpclient}"/>
In fact, setting this in idp.properties turns on root-level debug logging:
idp.loglevel.root = DEBUG
So, I'd think it would also work for idp.loglevel.httpclient, no?
Nevertheless, I also tried changing the logger directly to:
<logger name="org.apache.http" level="DEBUG"/>
No results there, either.
Rather maddening. Any other suggestions?
Keith
-----Original Message-----
From: Cantor, Scott <cantor.2 at osu.edu>
Sent: Monday, December 11, 2023 12:28 PM
To: Shib Users <users at shibboleth.net>
Cc: Wessel, Keith <kwessel at illinois.edu>
Subject: Re: Logging for an HTTP client bean
> Scott, we're still on 4.3.1. So, it's still org.apache.http, correct?
I don't know offhand, it sounds like that's more or less confirmed.
> idp.loglevel.httpclient = DEBUG
That's not going to do anything. Those are our properties and only influence a small subset of core logging categories. Normal logger configuration is via logger elements, same as always.
-- Scott
More information about the users
mailing list