Re: looking for source

2016-11-06 Thread Nicholas Duane
Great, that explains it. Thanks, Nick From: Ralph Goers Sent: Sunday, November 6, 2016 8:14 PM To: Log4J Users List Subject: Re: looking for source Because most people want the exception printed PatternLayout includes the ExtendedThrowableConverter by

Re: looking for source

2016-11-06 Thread Ralph Goers
but > I guess it might already be in the Message object. > > > Thanks, > > Nick > > > From: Ralph Goers > Sent: Sunday, November 6, 2016 1:38 AM > To: Log4J Users List > Subject: Re: looking for source > > If you look at

Re: looking for source

2016-11-06 Thread Nicholas Duane
age object. Thanks, Nick From: Ralph Goers Sent: Sunday, November 6, 2016 1:38 AM To: Log4J Users List Subject: Re: looking for source If you look at PatternLayout you will see a few choices for how the Exception gets formatted. %ex uses printStackTrace to

Re: looking for source

2016-11-05 Thread Ralph Goers
t; exceptionAsString; > > > Thanks, > > Nick > > > From: Remko Popma mailto:remko.po...@gmail.com>> > Sent: Saturday, November 5, 2016 9:16 PM > To: Log4J Users List > Subject: Re: looking for source > > The point i

Re: looking for source

2016-11-05 Thread Remko Popma
nder/layout. > > > Thanks, > > Nick > > > From: Remko Popma > Sent: Saturday, November 5, 2016 10:03 PM > To: Log4J Users List > Subject: Re: looking for source > > Nick, > > If you want to combine the formatted message

Re: looking for source

2016-11-05 Thread Nicholas Duane
gt; Thanks, > > Nick > > ____ > From: Remko Popma > Sent: Saturday, November 5, 2016 9:16 PM > To: Log4J Users List > Subject: Re: looking for source > > The point is that in a custom layout/appender you should get the throwable > from

Re: looking for source

2016-11-05 Thread Remko Popma
s, > > Nick > > ____________ > From: Remko Popma > Sent: Saturday, November 5, 2016 9:16 PM > To: Log4J Users List > Subject: Re: looking for source > > The point is that in a custom layout/appender you should get the throwable > from the LogEven

Re: looking for source

2016-11-05 Thread Nicholas Duane
xceptionAsString; Thanks, Nick From: Remko Popma Sent: Saturday, November 5, 2016 9:16 PM To: Log4J Users List Subject: Re: looking for source The point is that in a custom layout/appender you should get the throwable from the LogEvent, not from the Message. That is the design that

Re: looking for source

2016-11-05 Thread Remko Popma
exception. > > > Thanks, > > Nick > > > From: Remko Popma > Sent: Friday, November 4, 2016 9:58 PM > To: Log4J Users List > Subject: Re: looking for source > > The Throwable is initially captured in the Message (usually > ParameterizedMessage or its garbage-

Re: looking for source

2016-11-05 Thread Nicholas Duane
og4J Users List Subject: Re: looking for source The Throwable is initially captured in the Message (usually ParameterizedMessage or its garbage-free equivalent), but is later transferred to the LogEvent. By the time the LogEvent reaches the Layout, the Message instance may be a different Object th

Re: looking for source

2016-11-04 Thread Remko Popma
t; String serializedEvent = (String) getLayout().toSerializable(logEvent); > > Here is a snippet from our layout: > > > String message = logEvent.getMessage().getFormattedMessage(); > > > It seems the message above does not include any exception info. What are we > doing wrong? > > > Thanks, >

Re: looking for source

2016-11-04 Thread Nicholas Duane
From: Remko Popma Sent: Friday, November 4, 2016 10:42 AM To: Log4J Users List Subject: Re: looking for source Sure. Start in AbstractLogger in the API module: https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/

Re: looking for source

2016-11-04 Thread Remko Popma
Sure. Start in AbstractLogger in the API module: https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java and at some point you probably also want to look at the concrete subclass Logger in the core module: https://github.com/

Re: looking for source

2016-11-04 Thread Apostolis Giannakidis
Hi, The code is available in Github and you can clone it: https://github.com/apache/logging-log4j2/blob/f3e876a0fefd5d77c6f278b073bfa15df7971c44/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java On Fri, Nov 4, 2016 at 2:32 PM, Matt Sicker wrote: > https://git-wip-us.apac

Re: looking for source

2016-11-04 Thread Matt Sicker
https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;a=blob;f=log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java;h=84ce56791fe375d191a23155a682e9c149da6d01;hb=refs/heads/master#l732 There's a starting point. On 4 November 2016 at 09:29, Nicholas Duane wrote: > I'm

looking for source

2016-11-04 Thread Nicholas Duane
I'm not that familiar with java and java conventions, package names, etc. I'm trying to find the source for log4j2's implementation of logger.error(String, Throwable);. Can someone point me to that? I was looking around here: https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;a=tre