If you use the Unix/Linux "logger" command, does anything show up? that would narrow it down to whether or not it is a syslog configuration problem, or a log4j problem....
logger -p local.warn Testing Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." mli013 <[EMAIL PROTECTED]> 05/30/2008 02:40 PM Please respond to "Log4J Users List" <[email protected]> To [email protected] cc Subject SyslogAppender does not work Hi, I configured my log4j.xml to enable SYSLOG appender and reference the appender in my logger, as shown below: <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender"> <layout class="org.apache.log4j.PatternLayout"> </layout> </appender> <logger name="filters.LogRequestFilter"> <level value="debug"/> <appender-ref ref="CONSOLE"/> <appender-ref ref="FILE"/> <appender-ref ref="SYSLOG"/> </logger> And in /etc/syslog.conf, I specified the following (tab separated the two selectors): # Save user process messages to test_wslog local2.* /var/log/test_wslog I am NOT getting anything written to /var/log/test_wslog. Do I have to do anything special in my code? I didn't think so. I am just using the standard LogFactory: private static final Log LOG = LogFactory.getLog(LogRequestFilter.class); ..... LOG.info ("....."); I would really appreciate if someone could shed some light on why the appender is not outputting my messages to /var/log/test_wslog Thank you. -- View this message in context: http://www.nabble.com/SyslogAppender-does-not-work-tp17565633p17565633.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
