Yes. Read up on NDC and MDC [1]. A quick web search should give you even
more information.
[1] http://wiki.apache.org/logging-log4j/NDCvsMDC
Jake
On Thu, 14 Jul 2011 08:45:35 -0700 (PDT)
fachhoch wrote:
My application is configured to use log4j , all over in my code I use
log.debug t
My application is configured to use log4j , all over in my code I use
log.debug to log messages.
and exceptions are automatically logged,if some exception happens its
automatically logged.
I am asking if it is possible to configure log4j to add user information to
the message before it logs.
Can you restate the question? It's not clear to me what you are trying to do,
which is likely why you haven't received an answer.
Jake
On Thu, 14 Jul 2011 07:47:45 -0700 (PDT)
fachhoch wrote:
any help please ? I want to modify the message which log4j is going to log
,
please help me
any help please ? I want to modify the message which log4j is going to log ,
please help me
fachhoch wrote:
>
> can I add additional information when log4j logs exceptions ?, my root
> logger logs all errors , can I add a new line to the exception
> stacktrace ie user details which is i