0 Replies Latest reply on Apr 1, 2019 11:18 AM by Marcus Spusa

    LOG4j with syslog - CentOS 6.1.0 AS

    Marcus Spusa Newbie

      Hi guy, I need your help.

       

      I have a jboss 6.1.0 AS and need set log4j output for rsyslog.

      Has a setting default in /opt/jboss6.1/server/vcd_sched/deploy/jboss-logging.xml, but not function correct.

      I don´t find a documentation for me help with this case.

      How can i settings log4j in jboss container with output for syslog or find a documentation correct for Centos AS 6.1.0 final?

       

      Sorry, my english is bad.

       

      jboss-logging.xml

       

      <!-- Syslog events -->

       

       

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

            <error-manager>

               <only-once/>

            </error-manager>

       

       

            <level name="DEBUG"/>

       

       

            <properties>

               <property name="facility">LOCAL6</property>

               <property name="facilityPrinting">true</property>

               <property name="syslogHost">localhost</property>

            </properties>

       

       

            <formatter>

               <pattern-formatter pattern="[%d,%c{1}] %m%n"/>

            </formatter>

         </log4j-appender>