diff options
Diffstat (limited to '')
-rw-r--r-- | src/org/uic/barcode/logger/Logger.java | 24 | ||||
-rw-r--r-- | src/org/uic/barcode/logger/LoggerFactory.java | 9 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/org/uic/barcode/logger/Logger.java b/src/org/uic/barcode/logger/Logger.java new file mode 100644 index 0000000..b536154 --- /dev/null +++ b/src/org/uic/barcode/logger/Logger.java @@ -0,0 +1,24 @@ +package org.uic.barcode.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);
+ }
+
+
+}
+
+
diff --git a/src/org/uic/barcode/logger/LoggerFactory.java b/src/org/uic/barcode/logger/LoggerFactory.java new file mode 100644 index 0000000..0a1a83c --- /dev/null +++ b/src/org/uic/barcode/logger/LoggerFactory.java @@ -0,0 +1,9 @@ +package org.uic.barcode.logger;
+
+public class LoggerFactory {
+
+ public static Logger getLogger(String name) {
+ return new Logger();
+ }
+
+}
|