Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 00c7f39

Browse files
author
Eric Meyer
committed
Changes logging.properties to log to a file with rotation at 10mb keeping up to 30 files (same as discovery engine).
1 parent 0b091e9 commit 00c7f39

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

stage/logging.properties

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
handlers = java.util.logging.ConsoleHandler
1+
handlers = java.util.logging.FileHandler
22

3-
java.util.logging.ConsoleHandler.level = ALL
4-
java.util.logging.ConsoleHandler.formatter = com.t11e.discovery.datatool.CustomLogFormatter
3+
java.util.logging.FileHandler.level = ALL
4+
java.util.logging.FileHandler.pattern = ./log/datatool-%g.log
5+
java.util.logging.FileHandler.formatter = com.t11e.discovery.datatool.CustomLogFormatter
6+
# 10 * 1024m/k * 1024k/b
7+
java.util.logging.FileHandler.limit = 10485760
8+
java.util.logging.FileHandler.count = 30
9+
java.util.logging.FileHandler.append = true
510

611
.level = WARNING
712
org.mortbay.log.level = INFO

0 commit comments

Comments
 (0)