Skip to content

Commit e874d60

Browse files
authored
feat: add FINER and FINEST logging properties (#809)
1 parent 022f61a commit e874d60

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Global logging configuration for clas
3+
# Nick Tyler, UofSC
4+
#
5+
# Modified from hps-java logging
6+
# Jeremy McCormick, SLAC
7+
#
8+
9+
# default global level
10+
.level = FINER
11+
12+
# default handler which prints to console
13+
handlers = java.util.logging.ConsoleHandler
14+
15+
# Old detailed format
16+
# prints timestamp (1$), level (4$), source ($2), message (5$), and (optionally) an exception (6$).
17+
#java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$td %1$tT [%4$s] %2$s :: %5$s%6$s%n
18+
19+
# New simplified format
20+
# MESSAGE
21+
java.util.logging.SimpleFormatter.format = %5$s%6$s%n
22+
23+
# configure the console handler
24+
java.util.logging.ConsoleHandler.level = ALL
25+
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
26+
27+
28+
29+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Global logging configuration for clas
3+
# Nick Tyler, UofSC
4+
#
5+
# Modified from hps-java logging
6+
# Jeremy McCormick, SLAC
7+
#
8+
9+
# default global level
10+
.level = FINEST
11+
12+
# default handler which prints to console
13+
handlers = java.util.logging.ConsoleHandler
14+
15+
# Old detailed format
16+
# prints timestamp (1$), level (4$), source ($2), message (5$), and (optionally) an exception (6$).
17+
#java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$td %1$tT [%4$s] %2$s :: %5$s%6$s%n
18+
19+
# New simplified format
20+
# MESSAGE
21+
java.util.logging.SimpleFormatter.format = %5$s%6$s%n
22+
23+
# configure the console handler
24+
java.util.logging.ConsoleHandler.level = ALL
25+
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
26+
27+
28+
29+

0 commit comments

Comments
 (0)