summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-19 19:04:01 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-19 19:04:01 -0600
commit66ffeaf968bd332f1e18cb27aad11b50e4dd0eab (patch)
treec0d52e8e82590c0656f915610b5a7027a6abd057 /misc
parente98ca14483fb531c41d51677cc7075a0b8e6bd55 (diff)
Switched to use of Logger Module
Diffstat (limited to 'misc')
-rw-r--r--misc/MinimalSimpleFormatter.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/MinimalSimpleFormatter.java b/misc/MinimalSimpleFormatter.java
new file mode 100644
index 0000000..3a42398
--- /dev/null
+++ b/misc/MinimalSimpleFormatter.java
@@ -0,0 +1,12 @@
+package misc;
+
+import java.util.logging.ConsoleHandler;
+import java.util.logging.LogRecord;
+import java.util.logging.SimpleFormatter;
+
+public class MinimalSimpleFormatter extends SimpleFormatter {
+ @Override
+ public String format(LogRecord record) {
+ return record.getLevel() + ": " + formatMessage(record) + "\n";
+ }
+}