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 mail
g the %n and anything else after %m.
> >
>
> Hi James- that approach did work but newlines are critical for making the
> log file readable, particularly on the console.
> --
> View this message in context:
> http://www.nabble.com/Suppressing-stacktrace-output-tp16145551p16213313.
Tim Watts wrote:
>
>
> OR subclass PatternLayout and add a setIgnoresThrowable().
Hi Tim- that suggestion worked great. Thanks so much for your help. Thanks
everyone else who provided suggestions as well.
--
View this message in context:
http://www.nabble.com/Suppressing-s
James A. N. Stauffer wrote:
>
> Try removing the %n and anything else after %m.
>
Hi James- that approach did work but newlines are critical for making the
log file readable, particularly on the console.
--
View this message in context:
http://www.nabble.com/Suppressing-stacktra
thought so too. But it doesn't seem that's the case. I'm using the
> following pattern:
>
> [%d{-MM-dd HH:mm:ss}] %-5p %m %n
>
> so I expect only a date, the level, the message and a newline character.
>
> --
> View this message in context:
>
logged. How are
> > you configuring the console appender?
> >
> >
> > I thought so too. But it doesn't seem that's the case. I'm using the
> > following pattern:
> >
> > [%d{-MM-dd HH:mm:ss}] %-5p %m %n
> >
> > so I expect only
u configuring the console appender?
>
>
> I thought so too. But it doesn't seem that's the case. I'm using the
> following pattern:
>
> [%d{-MM-dd HH:mm:ss}] %-5p %m %n
>
> so I expect only a date, the level, the message and a newline character.
>
> --
el, the message and a newline character.
--
View this message in context:
http://www.nabble.com/Suppressing-stacktrace-output-tp16145551p16168549.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
-
To unsu
appropriate filter levels on each appender.
>
> Does someone have a solution that would allow me to simply turn off
> stacktrace output for a specific appender?
>
> Thanks,
>
> Jim
>
> --
> View this message in context:
> http://www.n
stom message", e);
and then set up appropriate filter levels on each appender.
Does someone have a solution that would allow me to simply turn off
stacktrace output for a specific appender?
Thanks,
Jim
--
View this message in context:
http://www.nabble.com/Suppressing-stacktrace-output-tp16
10 matches
Mail list logo