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 "henrik.ebbesen" <he...@gmail.com> on 2013/03/26 11:56:08 UTC

Re: Suppressing stacktrace output

The EnhancedPatternLayout class already has options to suppress stacktrace.
See 
http://logging.apache.org/log4j/companions/extras/apidocs/index.html?org/apache/log4j/rolling/RollingFileAppender.html
<http://logging.apache.org/log4j/companions/extras/apidocs/index.html?org/apache/log4j/rolling/RollingFileAppender.html>  

Tim Watts wrote
> OR subclass PatternLayout and add a setIgnoresThrowable(). Then use this 
> subclass in your console appender definition and add a property to
> disable:
> 
> 	...
> 	log4j.appender.console.layout=com.mydomain.MyPatternLayout
> 	log4j.appender.console.layout.IgnoresThrowable=false
> 	...





--
View this message in context: http://apache-logging.6191.n7.nabble.com/Suppressing-stacktrace-output-tp6839p36314.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

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