summaryrefslogtreecommitdiffstats
path: root/src/logger/Logger.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-01-03 10:34:39 +0100
committerGitHub <noreply@github.com>2020-01-03 10:34:39 +0100
commitbfb7a87766a907e1764ac5608c6e448f1681f815 (patch)
tree3cf24fccbf5e078b76fbd07d9df58ba8ec33b441 /src/logger/Logger.java
parentlicence added (diff)
downloadUIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar.gz
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar.bz2
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar.lz
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar.xz
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.tar.zst
UIC-barcode-bfb7a87766a907e1764ac5608c6e448f1681f815.zip
Diffstat (limited to 'src/logger/Logger.java')
-rw-r--r--src/logger/Logger.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/logger/Logger.java b/src/logger/Logger.java
new file mode 100644
index 0000000..e6d7638
--- /dev/null
+++ b/src/logger/Logger.java
@@ -0,0 +1,24 @@
+package logger;
+
+import java.util.logging.Level;
+
+
+public class Logger {
+
+ public void debug(String text){
+ java.util.logging.Logger.getGlobal().log(Level.FINEST,text);
+ System.out.println(text);
+ }
+
+ public void log(Level level,String text){
+ java.util.logging.Logger.getGlobal().log(level,text);
+ }
+
+ public void info(String text, IllegalArgumentException e) {
+ java.util.logging.Logger.getGlobal().log(Level.INFO,text);
+ }
+
+
+}
+
+