Hi,
Anyone knew or met similar issue below? Thanks in advance.
Best regards.
-Original Message-
From: Maple Wang [mailto:maple.feng.w...@hotmail.com]
Sent: Tuesday, August 09, 2016 6:15 PM
To: Log4J Users List
Subject: why MutableLogEvent don't keep the ReusableObjectMessag
Hi,
After upgrading Log4j from 2.5 to 2.6.2, I found that log event catched by my
appender is changed from Log4jLogEvent to MutableLogEvent, it's fine except
that I can't get the ObjectMessage from MutableLogEvent. If I sent object
message thought log4j API like log.info(object);, I assume obje
it. You would call Configurator.initialize at
> startup and Configurator.shutdown from your shutdown hook.
>
> Ralph
>
> > On Jun 24, 2016, at 3:25 AM, Maple Wang
> >
> wrote:
> >
> > Hi,
> >
> > I registered a shutdownhook in my code and found tha
Hi,
I registered a shutdownhook in my code and found that there is no any log
output from my hook method, the reason is that since log4j2.1, shutdown hook
registry will be enabled by default from log4j, logger is stopped by log4j's
hook before my hook is invoked.
Of course I can disable the ho
Hi,
We are implementing a function with self-defined appender in log4j2.x, in
this appender, we forward LogEvent to other function modules, and in those
function modules we also log some messages to this appender , so you must
understand that recursive call will happen sometimes. For current
i
a good starting point.
Let me know if you have questions.
Remko
Sent from my iPhone
> On 2016/03/29, at 10:58, Maple Wang wrote:
>
> Hi Gary,
>
> Yes, I want to use specific marker on one more loggers, I mean current way
of using marker is not so convenient if I want to a
logger rather than a log
Do you plan on using this marker with more than one logger?
Gary
On Mar 28, 2016 1:35 AM, "Maple Wang" wrote:
> Hi,
>
>
>
> Marker is great feature for classifying and filtering log content, but
> I have a question about how to use marker
Hi,
Marker is great feature for classifying and filtering log content, but I
have a question about how to use marker in logging API. In official guide
for log4j2.x, normally, we need to do as blow:
Marker myMarker = MarkerManager.getMarker("myMarker");
LOGGER.info(myMarker,"some log messa
Hi Ralph,
Thanks very much, it works.
Best regards.
-Original Message-
From: Ralph Goers [mailto:ralph.go...@dslextreme.com]
Sent: Friday, March 18, 2016 11:29 PM
To: Log4J Users List; Log4J Users List
Subject: Re: how to suppress stacktrace for PatternLayout in ConsoleAppender in
Log4