Shibboleth IDP replacing logging implementation

Cantor, Scott cantor.2 at osu.edu
Wed Mar 9 09:39:52 EST 2016


On 3/9/16, 3:30 AM, "dev on behalf of Ignacio Cañón Sánchez" <dev-bounces at shibboleth.net on behalf of icanon at paradigmadigital.com> wrote:



>Hi all, I've been checking https://wiki.shibboleth.net/confluence/display/IDP30/LoggingConfiguration and trying to change by myself logback -> log4j2 (is
> a requirement from my current project). Ive tried to replace logback jars by log4j2 plus log4j-slf4j-impl, and also changed services.properties to point to log4j2 configuration file.
>I haven't succeded yet, no logs are created, and it seems that there is a internal class from shibboleth using  logback classes as dependencies.
>Do you think is posible to chante logging implementation from logback -> log4j2?

The idp.service.logging.class property controls the class of the LoggingService used, you have to write your own implementation of net.shibboleth.idp.log.LoggingService and override the property to point to that class instead of the Logback implementation we supply.

See the net.shibboleth.idp.log package.

-- Scott



More information about the dev mailing list