Results 1 to 1 of 1
hi all,
m trying to log my application error messages to syslog using log4j.
it logs on console log file is blank
any help plz..!!
here are the configurations of ...
- 03-31-2007 #1Just Joined!
- Join Date
- Aug 2005
- Location
- India
- Posts
- 12
configure syslog with log4j
hi all,
m trying to log my application error messages to syslog using log4j.
it logs on console log file is blank
any help plz..!!
here are the configurations of log4j
log4j.rootLogger=warn, SysLogAppender, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppe nder
log4j.appender.stdout.layout=org.apache.log4j.Patt ernLayout
log4j.appender.stdout.layout.ConversionPattern=%p [%t] (%c) - %m%n
log4j.appender.SysLogAppender=org.apache.log4j.net .SyslogAppender
log4j.appender.SysLogAppender.layout=org.apache.lo g4j.PatternLayout
log4j.appender.SysLogAppender.SyslogHost=localhost
log4j.appender.SysLogAppender.Facility=local6
log4j.appender.SysLogAppender.layout.ConversionPat tern=%p [%t] (%c) - %m%n
note: ive even added following line
local6.* /var/log/myapp.log
in /etc/syslog.conf file, it creates log file when i restart syslogd but it remains blank.


Reply With Quote