diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-19 19:04:01 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-19 19:04:01 -0600 |
commit | 66ffeaf968bd332f1e18cb27aad11b50e4dd0eab (patch) | |
tree | c0d52e8e82590c0656f915610b5a7027a6abd057 /misc/MinimalSimpleFormatter.java | |
parent | e98ca14483fb531c41d51677cc7075a0b8e6bd55 (diff) |
Switched to use of Logger Module
Diffstat (limited to 'misc/MinimalSimpleFormatter.java')
-rw-r--r-- | misc/MinimalSimpleFormatter.java | 12 |
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"; + } +} |