Skip to content

Commit c576c79

Browse files
committed
test: set logging options for unit test
1 parent c08c567 commit c576c79

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Set the default logging level to INFO
2+
.level = SEVERE
3+
4+
# Specify the handlers that will handle the log messages
5+
handlers = java.util.logging.ConsoleHandler
6+
7+
# Configure the ConsoleHandler
8+
java.util.logging.ConsoleHandler.level = ALL
9+
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
10+
11+
# Configure the FileHandler
12+
java.util.logging.FileHandler.pattern = log.txt
13+
java.util.logging.FileHandler.limit = 0
14+
java.util.logging.FileHandler.count = 1
15+
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
16+
17+
# Set the logging level for the FileHandler to ALL
18+
java.util.logging.FileHandler.level = ALL
19+
20+
# Configure the SimpleFormatter to include date, source, logger name, level, and message
21+
# java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s %2$s %5$s%6$s%n
22+
java.util.logging.SimpleFormatter.format=%5$s %6$s%n
23+
# %1$tF: Date in ISO 8601 format (e.g., 2023-10-05).
24+
# %1$tT: Time in 24-hour format (e.g., 12:34:56).
25+
# %4$s: Log level (e.g., INFO).
26+
# %3$s: Method name (e.g., main).
27+
# %5$s: Log message.
28+
# %6$s: Thrown exception (if any).
29+
# %n: Newline.
30+
31+
org.bsc.langgraph4j.level = FINEST

0 commit comments

Comments
 (0)