Jerry,
Is the Syslog daemon on "somehost.com" configured to accept packets from
the network? On most installations, by default Syslog is configured to
reject input from the network.
Home this helps,
At 04:31 PM 7/21/2005, you wrote:
I am converting our PHP code to java and am able to write to the syslog
using PHP supplied functions, but have not been able to use log4j to supply
that same behavior. My config file looks like this:
# define syslog appender
log4j.debug=true
log4j.appender.S=org.apache.log4j.net.SyslogAppender
log4j.appender.S.SyslogHost=somehost.com
log4j.appender.S.Facility=local5
log4j.appender.S.layout=org.apache.log4j.PatternLayout
log4j.appender.S.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}: %p %c -
%m%n
# add appender to logger
log4j.logger.test.TestClass=DEBUG, Z
[cut]
Jerry
--
Ceki Gülcü
The complete log4j manual: http://www.qos.ch/log4j/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]