You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2012/02/29 17:05:28 UTC

DO NOT REPLY [Bug 52797] New: SyslogAppender ignores the whole message

https://issues.apache.org/bugzilla/show_bug.cgi?id=52797

             Bug #: 52797
           Summary: SyslogAppender ignores the whole message
           Product: Log4j
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: rui.abreu@gmail.com
    Classification: Unclassified


Using Jboss 6.0.1:

In deploy/jboss-logging.xml I have the following configuration:





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

      <error-manager>

         <only-once/>

      </error-manager>



        <level name="DEBUG"/>



      <properties>

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

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

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

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

      </properties>



      <formatter>

         <pattern-formatter pattern="%p %d{dd MMM yyyy HH:mm:ss,SSS} %c -
%m%n"/>

      </formatter>

   </log4j-appender>





The message gets through to rsyslog, but only the "%m" part of the pattern 
gets there. I've tried with different patterns and also commented out the
<formatter> part and the result is the same.
Using the command  logger -p FACILITY "MESSAGE" I can test rsyslog and it's
working fine, so my understanding is that JBoss + Log4j is not sending the full
log message.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org