logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "henrik.ebbesen" <henrik.ebbe...@gmail.com>
Subject Re: Suppressing stacktrace output
Date Tue, 26 Mar 2013 10:56:08 GMT
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


Mime
View raw message