logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chen <alex_c...@sbcglobal.net>
Subject Logging to syslog
Date Fri, 04 Mar 2005 00:51:14 GMT
I am trying to make log4j put my log message into syslog, i.e. 
/var/log/messages,
I set up the log4.properties like this:

log4j.rootLogger=WARN, syslog
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %-5p [%t] 
%c{1} - %m%n

log4j.appender.syslog=org.apache.log4j.net.SyslogAppender
log4j.appender.syslog.layout=org.apache.log4j.PatternLayout
log4j.appender.syslog.layout.ConversionPattern=%d{ISO8601} %-5p [%t] 
%c{1} - %m%n

I do not see anything being logged there.  Did I miss anything? (i.e. do 
I need to specify the
log file name?)

Mime
View raw message