-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add definitions of additional syslog levels
- Loading branch information
1 parent
8a30d6f
commit 0b0d80c
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package app.attestation.server; | ||
|
||
import java.util.logging.Level; | ||
|
||
public class SyslogLevel extends Level { | ||
protected SyslogLevel(final String name, final int value) { | ||
super(name, value); | ||
} | ||
|
||
static final Level EMERG = new SyslogLevel("EMERG", 1300); | ||
static final Level ALERT = new SyslogLevel("ALERT", 1200); | ||
static final Level CRIT = new SyslogLevel("CRIT", 1100); | ||
static final Level ERR = Level.SEVERE; // 1000 | ||
static final Level WARNING = Level.WARNING; // 900 | ||
static final Level NOTICE = new SyslogLevel("NOTICE", 850); | ||
static final Level INFO = Level.INFO; // 800 | ||
// Level.CONFIG is 700 | ||
// Level.FINE is 500 | ||
// Level.FINER is 400 | ||
static final Level DEBUG = Level.FINEST; // 300 | ||
} |