logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason B <makotothedra...@gmail.com>
Subject Re: Custom Syslog Format: Appending Exceptions?
Date Tue, 14 May 2013 19:48:39 GMT
I find this interesting...you had to go back a few levels to implement this
sort of custom behavior.  I'd love to see your patches, since I'm curious
if this can be incorporated into the SyslogAppender as opposed to going one
or two levels above it.

- Jason Black


On Tue, May 14, 2013 at 2:10 AM, Tomek Kaczynski
<tomek.kaczynski@gmail.com>wrote:

> Hi,
>
>    In my case I  created a SyslogWrapperLayout which can wrap any other
> layout, so I put PatternLayout inside SyslogWrapperLayout. As far as I see
> that's the only way to get cusomizeable Layout for syslog. Ah, and one more
> thing, I don't use SyslogAppender, but a simple SocketAppender with
> SyslogWrapperLayout, it works great,
>
>    Obviously that's not a standard way, but that's how log4j2 should work
> ;-)
>
>
>
> Tomek
>
>
> On Mon, May 13, 2013 at 8:38 PM, Jason B <makotothedragon@gmail.com>
> wrote:
>
> > Looking around at the Syslog support, and I noticed that exceptions
> aren't
> > being sent across the wire.  I understand that there may be some limit to
> > how much data we're sending across with Syslog via TCP, but I was curious
> > if there was any custom support for formatters with exceptions.
> >
> > I came across this old JIRA for that support:
> >
> > https://issues.apache.org/jira/browse/LOG4J2-136
> >
> > ... and looking into RFC5424Layout, I see that it could be added, but I'm
> > not sure if our setup is configured properly to make use of it.
> >
> > - Jason Black
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message