[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-dev
Subject:    DO NOT REPLY [Bug 46626] New: Log4J 1.2.15 SyslogAppender doesn't
From:       bugzilla () apache ! org
Date:       2009-01-29 16:16:19
Message-ID: bug-46626-31091 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]

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: log4j-dev@logging.apache.org
        ReportedBy: mathieu.rozieres@gmail.com
                CC: mathieu.rozieres@gmail.com


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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic