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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to