aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/romjaki/logger/Level.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/romjaki/logger/Level.java')
-rw-r--r--src/main/java/de/romjaki/logger/Level.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/de/romjaki/logger/Level.java b/src/main/java/de/romjaki/logger/Level.java
new file mode 100644
index 0000000..38310ab
--- /dev/null
+++ b/src/main/java/de/romjaki/logger/Level.java
@@ -0,0 +1,18 @@
+package de.romjaki.logger;
+
+/**
+ * Created by RGR on 17.08.2017.
+ */
+public enum Level {
+ ALL,
+ FAILURE,
+ ERROR,
+ WARNING,
+ INFO,
+ DEBUG,
+ OFF;
+
+ public boolean logs(Level level) {
+ return this.ordinal() <= level.ordinal();
+ }
+}