You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@logging.apache.org by Wojciech Ciesielski <wo...@softwaremind.pl> on 2005/11/18 16:46:13 UTC

Turning stacktrace ON and OFF

Hi there,

Is there some way to change (via properties file) behaviour of log4j logger in matter of displaying stacktrace from logger.info/debug/warn/error(msg, throwable)?

I would like to be able to turn stacktraces on and off without changing from info(msg,th) to info(msg+th.getMessage) back and forth...

TIA

Wojtek Ciesielski