[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Changing the log level for fatal Exceptions
|
Hi,
On Thu, Jan 26, 2017 at 10:28 AM, Channing Walton
<channingwalton@xxxxxxx> wrote:
> Hi,
>
> By default Jetty does not log anything at ERROR level, but there are some
> exceptions it logs which are fatal, and so I would like to log them at ERROR
> level rather than WARN.
"Fatal" is typically decided by the application; for some it may be
deadly, for others something that can be ignored.
Jetty logging does not have an ERROR level.
(Please let's not start a religion war about how broken is the concept
of logging levels).
> The reason is ‘because enterprise monitoring’.
>
> Is there anyway I can arrange errors like OOM errors to be logged at ERROR
> level?
Parsing the log lines you are interested in is one solution.
Could be applied after the fact, or on-the-fly with a custom Jetty
logger that you can easily plug in.
Cheers
--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.