how to configure Shibboleth SP to send logs on stdout and stderr console
Paul Caskey
pcaskey at internet2.edu
Mon Jul 13 16:09:13 UTC 2020
We use a runtime pipe in the InCommon TAP container for the Shibb SP [1].
Specifically, in these 3 files:
https://github.internet2.edu/docker/shib-sp/blob/master/container_files/system/startup.sh
https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/shibd.logger
https://github.internet2.edu/docker/shib-sp/blob/master/container_files/shibboleth/native.logger
[1] https://github.internet2.edu/docker/shib-sp
From: users <users-bounces at shibboleth.net> On Behalf Of Francesco Carosella
Sent: Monday, July 13, 2020 10:57 AM
To: users at shibboleth.net
Subject: how to configure Shibboleth SP to send logs on stdout and stderr console
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/6f314dfd/attachment.htm>
More information about the users
mailing list