Skip to content

Commit

Permalink
add definitions of additional syslog levels
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Sep 25, 2024
1 parent 8a30d6f commit 0b0d80c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/app/attestation/server/SyslogLevel.java
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
}

0 comments on commit 0b0d80c

Please sign in to comment.