You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Marvin Chase <Ma...@GFInet.com> on 2002/04/24 00:12:33 UTC
SyslogAppender
I need a bit of help troubleshooting a SyslogAppender problem.
I am using a SyslogAppender to append to syslog on linux. I have
initialized the SyslogAppender to connect to host=localhost, facility=USER
using an xml configuration file. The syslog entry is as follows:
<appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
<param name="SyslogHost" value="localhost"/>
<param name="Facility" value="USER"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{ISO8601} [%t] %-5p %c{2} %x -
%m%n"/>
</layout>
</appender>
I read the log4j faq and saw that if the syslog daemon is not started with
the '-r' option, a log4j error message will be printed indicating that the
SyslogAppender could not write to the syslog port. This error is NOT being
printed. I am looking for my logs in /var/log but they are not present.
I'm not familiar with syslog, so I don't know if I am looking in the correct
place, and I don't know what file name my logs would be written to. If
anyone can tell me where to look or what may be going wrong, I would
appreciate it very much.
thanks in advance
- Marvin
***************************************************************
Confidentiality note: This e-mail contains information from the
GFI Group Inc. and/or its affiliates, including GFInet inc.,
that is confidential and/or legally privileged. This
information is intended only for the use of the individual or
entity named on this e-mail. This e-mail and its content may
not be reproduced or retransmitted without the express written
permission of The GFI Group.
***************************************************************
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: SyslogAppender
Posted by Ceki Gülcü <ce...@qos.ch>.
Have you tried "man syslogd"? Syslog is not that complicated but
still needs a minimal amount of configuration. Assuming you are using Linux,
what does your /etc/syslog.conf file look like?
At 18:12 23.04.2002 -0400, you wrote:
>I need a bit of help troubleshooting a SyslogAppender problem.
>
>I am using a SyslogAppender to append to syslog on linux. I have
>initialized the SyslogAppender to connect to host=localhost, facility=USER
>using an xml configuration file. The syslog entry is as follows:
>
><appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
> <param name="SyslogHost" value="localhost"/>
> <param name="Facility" value="USER"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern"
> value="%d{ISO8601} [%t] %-5p %c{2} %x -
>%m%n"/>
> </layout>
></appender>
>
>I read the log4j faq and saw that if the syslog daemon is not started with
>the '-r' option, a log4j error message will be printed indicating that the
>SyslogAppender could not write to the syslog port. This error is NOT being
>printed. I am looking for my logs in /var/log but they are not present.
>
>I'm not familiar with syslog, so I don't know if I am looking in the correct
>place, and I don't know what file name my logs would be written to. If
>anyone can tell me where to look or what may be going wrong, I would
>appreciate it very much.
>
>thanks in advance
>
>- Marvin
>
>
>***************************************************************
>Confidentiality note: This e-mail contains information from the
>GFI Group Inc. and/or its affiliates, including GFInet inc.,
>that is confidential and/or legally privileged. This
>information is intended only for the use of the individual or
>entity named on this e-mail. This e-mail and its content may
>not be reproduced or retransmitted without the express written
>permission of The GFI Group.
>***************************************************************
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
Ceki
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>