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

           Summary: Log4J 1.2.15 SyslogAppender doesn't not handle TAG
                    corectly ....
           Product: Log4j
           Version: unspecified
          Platform: All
               URL: http://mrozieres.free.fr/dev/TagSyslogAppender.java
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=23192)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23192)
Inproved SyslogAppender

I found today an issue reported that looks like the one i am facing : the
difficulty to handle tag for syslog message routing with Log4j Syslog Appender.
On this issue, it was advised to use ConversionPattern Layout to handle the tag
prefixing the real message payload. 

I.E, this workaround only work for small log message as the SyslogAppender
slice long message in < 1024 chunks. In order to prevent the tag to only appear
on the 1st syslog message, i've diverted the facilityprinting options that
limit the usage of tags to the facility names. To let the user define its own
tag, i've added a TagLabel property to the appender, renamed FacilityPrinting
to TagPrinting and not to be too code intrusive, i've had a little hack to
suffix the SyslogAppender header string with it.

I hope it will help someone out there.

Regards,

Mathieu


Rapid syslog protocol packet description:
http://www.monitorware.com/Common/en/Articles/syslog-described.php


-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to