logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Steele" <pste...@maxiscale.com>
Subject Using the syslog appender in log4cxx
Date Tue, 03 Jun 2008 23:39:02 GMT
We have a multi-host, multi-application product and want to use syslog
to collect logs in one location. For our Java apps, I just had to add
the code

 

   <!-- Syslog events -->

   <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">

     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

     <param name="Facility" value="LOCAL7"/>

     <param name="FacilityPrinting" value="true"/>

     <param name="SyslogHost" value="myloghost"/>   

     <layout class="org.apache.log4j.PatternLayout">

       <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/>

     </layout>

   </appender>

 

to the log4j config file to enable our Java apps to use the syslog
through the SyslogAppender. I tried the same thing in the xml file
that's used by our log4cxx-based applications and I am not seeing
anything appearing in the main syslog file for these applications. What
other magic do I need to do in log4cxx to get our apps to log to our
syslog host? We are using the 0.9.7 release.

 


Mime
View raw message