RE: how to suppress stacktrace for PatternLayout in ConsoleAppender in Log4j 2.x

2016-03-20 Thread Maple Wang
Hi Ralph, Thanks very much, it works. Best regards. -Original Message- From: Ralph Goers [mailto:ralph.go...@dslextreme.com] Sent: Friday, March 18, 2016 11:29 PM To: Log4J Users List; Log4J Users List Subject: Re: how to suppress stacktrace for PatternLayout in ConsoleAppender in

Re: how to suppress stacktrace for PatternLayout in ConsoleAppender in Log4j 2.x

2016-03-18 Thread Ralph Goers
You can use a PatternSelector with Log4j 2. Ralph > On Mar 18, 2016, at 7:34 AM, WangMaple wrote: > > Hi, > > > > I'm trying to realize a feature which can programmatically > suppress exception's stacktrace for PatternLayout in ConsoleAppender in Log4j > 2.x. Actually it’s very easy to do t