Log4J Users List
Subject: Re: uncaught exception with log4j2
If you can't catch the exception, then you'll just have to configure
Wildfly's logging separately:
https://docs.jboss.org/author/display/WFLY9/Logging+Configuration
On 3 May 2016 at 14:14, Paul Benedict <pbened...@apache.org> wro
not want to add a catch to
> > anything at all.
> >
> > vpyang
> >
> >
> > From: Ralph Goers <ralph.go...@dslextreme.com>
> > Sent: Tuesday, May 3, 2016 11:54 AM
> > To: Log4J Users List
> > Subject: Re: un
d a catch to
> anything at all.
>
> vpyang
>
>
> From: Ralph Goers <ralph.go...@dslextreme.com>
> Sent: Tuesday, May 3, 2016 11:54 AM
> To: Log4J Users List
> Subject: Re: uncaught exception with log4j2
>
> All you need is to ca
Is there no alternative to this? I really do not want to add a catch to
anything at all.
vpyang
From: Ralph Goers <ralph.go...@dslextreme.com>
Sent: Tuesday, May 3, 2016 11:54 AM
To: Log4J Users List
Subject: Re: uncaught exception with log4j2
A
All you need is to catch the exceptions by doing:
try {
} catch (Exception ex) {
logger.error(“Uncaught exception:”, ex);
}
You would put this in your servlet, Controller or whatever the first thing in
your application is that gets control from Tomcat.
If you want to treat them
Hello list,
I'm looking for a way to log any uncaught exceptions to a file. I'm currently
running Wildfly 9.0.2 server and all uncaught exceptions are printing to
console. I'd like to use log4j2 log those exceptions. Can anyone point me in
the right direction.
vpyang