The standard Java logging defines the following log levels:
This is incompatible to RFC 5424, because it lacks a NOTICE level between INFO and WARNING. Java lacks some additional log levels (error, critical, alert and emergency) but NOTICE is the one which hurts me.
Is there any way to extend the list of possible log levels in order to add the missing NOTICE level? Or is it necessary to rewrite the whole logging?
This should work
class Level2 extends Level {
public static final Level2 NOTICE = new Level2("NOTICE", 850);
private Level2(String name, int level) {
super(name, level);
}
}