You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jason B <ma...@gmail.com> on 2013/05/13 20:38:13 UTC
Custom Syslog Format: Appending Exceptions?
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
Re: Custom Syslog Format: Appending Exceptions?
Posted by Tomek Kaczynski <to...@gmail.com>.
Hi Gary,
I've found some time to commit my syslogWrapLayout class, but I can't
push my change to the server because it prompts me for a user and password.
As far as I see this is different account from the JIRA one. Can you please
help me and send me a link with guidline saying how to commit something to
the project ?
Tomek
On Wed, May 15, 2013 at 1:03 PM, Tomek Kaczynski
<to...@gmail.com>wrote:
> Hi,
> The isssue is https://issues.apache.org/jira/browse/LOG4J2-256
>
> Whe should I put source and how ?
> log4j2\core\src\main\java\org\apache\logging\log4j\core\layout is a good
> location ?
>
> Tomek
>
>
>
> On Tue, May 14, 2013 at 9:48 PM, Jason B <ma...@gmail.com>wrote:
>
>> 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
>> <to...@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 <ma...@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
>> > >
>> >
>>
>
>
Re: Custom Syslog Format: Appending Exceptions?
Posted by Tomek Kaczynski <to...@gmail.com>.
Hi,
The isssue is https://issues.apache.org/jira/browse/LOG4J2-256
Whe should I put source and how ?
log4j2\core\src\main\java\org\apache\logging\log4j\core\layout is a good
location ?
Tomek
On Tue, May 14, 2013 at 9:48 PM, Jason B <ma...@gmail.com> wrote:
> 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
> <to...@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 <ma...@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
> > >
> >
>
Re: Custom Syslog Format: Appending Exceptions?
Posted by Jason B <ma...@gmail.com>.
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
<to...@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 <ma...@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
> >
>
Re: Custom Syslog Format: Appending Exceptions?
Posted by Tomek Kaczynski <to...@gmail.com>.
Sure, I'll try in following days.
Tomek
On Tue, May 14, 2013 at 2:35 PM, Gary Gregory <ga...@gmail.com>wrote:
> Would you like to create a JIRA and contribute a patch?
>
> Gary
>
> On May 14, 2013, at 4:11, Tomek Kaczynski <to...@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 <ma...@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
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
Re: Custom Syslog Format: Appending Exceptions?
Posted by Gary Gregory <ga...@gmail.com>.
Would you like to create a JIRA and contribute a patch?
Gary
On May 14, 2013, at 4:11, Tomek Kaczynski <to...@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 <ma...@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
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Custom Syslog Format: Appending Exceptions?
Posted by Tomek Kaczynski <to...@gmail.com>.
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 <ma...@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
>