[cpp-sp] 67/78: Send the native log to syslog

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:40:42 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to annotated tag debian/2.0.dfsg1-1
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=4d07b4576c301a7f77aed1cff40b2f891015167b

commit 4d07b4576c301a7f77aed1cff40b2f891015167b
Author: Russ Allbery <rra at debian.org>
AuthorDate: Wed Jun 25 17:18:03 2008 -0700

    Send the native log to syslog
    
    The default native log appender tries to write to native.log in the
    Apache log directory, but since that directory is not writable by the
    Apache web user (regular Apache logs are handled by the root process),
    the logs normally go nowhere.  Change the default to log to syslog so
    the logs at least go somewhere.
---
 configs/native.logger.in | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/configs/native.logger.in b/configs/native.logger.in
index 78ff4ff..2927392 100644
--- a/configs/native.logger.in
+++ b/configs/native.logger.in
@@ -26,10 +26,23 @@ log4j.category.XMLTooling.libcurl=INFO
 
 # define the appender
 
-log4j.appender.native_log=org.apache.log4j.RollingFileAppender
-log4j.appender.native_log.fileName=@-SHIRELOGDIR-@/native.log
-log4j.appender.native_log.maxFileSize=1000000
-log4j.appender.native_log.maxBackupIndex=10
-#log4j.appender.native_log.layout=org.apache.log4j.BasicLayout
-log4j.appender.native_log.layout=org.apache.log4j.PatternLayout
-log4j.appender.native_log.layout.ConversionPattern=%d{%Y-%m-%d %H:%M:%S} %p %c %x: %m%n
+# This is the default, but it's essentially useless under normal
+# circumstances since Apache doesn't have access to write to that
+# directory.
+#log4j.appender.native_log=org.apache.log4j.RollingFileAppender
+#log4j.appender.native_log.fileName=@-SHIRELOGDIR-@/native.log
+#log4j.appender.native_log.maxFileSize=1000000
+#log4j.appender.native_log.maxBackupIndex=10
+##log4j.appender.native_log.layout=org.apache.log4j.BasicLayout
+#log4j.appender.native_log.layout=org.apache.log4j.PatternLayout
+#log4j.appender.native_log.layout.ConversionPattern=%d{%Y-%m-%d %H:%M:%S} %p %c %x: %m%n
+
+# Use syslog instead, since then at least the messages will go somewhere.
+# That facility is (3 << 3) or LOG_DAEMON, since log4cpp apparently
+# doesn't recognize symbolic log facilities.
+#
+# This is a Debian-specific change.
+log4j.appender.native_log=org.apache.log4j.LocalSyslogAppender
+log4j.appender.native_log.syslogName=shibboleth-sp
+log4j.appender.native_log.facility=24
+log4j.appender.native_log.layout=org.apache.log4j.BasicLayout

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list