how to configure Shibboleth SP to send logs on stdout and stderr console

Francesco Carosella carruzze at gmail.com
Mon Jul 13 15:56:46 UTC 2020


Hi all,

I'm using Shibboleth SP v. 3.1.0 on RHEL 7 in a Docker container.

I need to send the SP logs in stdout and stderr console, in order to 
read them with the "docker logs" command.

I have tried to configure the shibd.logger configuration file by adding 
the follow appender:

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

and the follow root category:


log4j.rootCategory=INFO, shibd_log, warn_log, stdout

but it doesn't work. I get the log files in /var/log/shibboleth/ path 
but not in stdout console

  I run the SP daemon inside the docker container with the follow command:

exec  /usr/sbin/shibd -u $SHIBD_USER -c $CONFING_SHARED/shibboleth2.xml -p $pidfile -f -F

Thanks in advance

Francesco

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200713/6873ac11/attachment.htm>


More information about the users mailing list