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
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
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
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
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
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
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
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
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-
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
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,
>
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/
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/
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
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
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
16 matches
Mail list logo