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 Erik Smith <er...@ucsd.edu> on 2004/07/24 18:38:01 UTC

Throwable with every log for scope nesting

I've been trying to find a way to get the scope level, which I define as 
the StackElements[].length() at the log call, available to a Layout 
object.  Unfortunately, the Throwable object is only available when you 
explicitly call it.  log4j could be modified to pass it with each call as 
an option, but this would probably not be consistent with what most objects 
that use a LoggingEvent expect.   Is there some other way to get the call 
stack?

The reason I want it is so that I can indent my logging output based on the 
call stack.

erik




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org