forked from janpolowinski/rvl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.properties.template
61 lines (47 loc) · 2.12 KB
/
logging.properties.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# The system will look for this config file using a system property specified at startup:
# >java -Djava.util.logging.config.file=myLoggingConfigFilePath
#
# If not specified, then the config file is retrieved from:
# JDK_HOME/jre/lib/logging.properties
# Global logging properties.
###############################################################
# Handlers to be loaded on startup:
# May be separated with or without comma? Both seems to work
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
# Default global logging level, may be overridden below
.level=SEVERE
# Loggers
###############################################################
# Loggers are usually attached to packages.
# Here, the level for each package is specified.
# The global level is used by default, so levels
# specified here simply act as an override.
org.purl.rvl.level=WARNING
org.purl.rvl.tooling.level=INFO
# Handlers
###############################################################
#java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
java.util.logging.SimpleFormatter.format=%1$tc [%4$s] %5$s (%2$s) %6$s%n
#java.util.logging.SimpleFormatter.format=[%4$s] %5$s%n
# does not seem to work:
#org.test.logging.CustomRecordFormatter.format=%4$s: %5$s [%1$tc]%n
### ConsoleHandler ###
# Override global logging level
java.util.logging.ConsoleHandler.level=FINEST
#java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.ConsoleHandler.formatter=org.purl.rvl.tooling.commons.utils.CustomRecordFormatter
### FileHandler ###
# Override global logging level
java.util.logging.FileHandler.level=WARNING
# Output file name:
# %h means USER_HOME
#java.util.logging.FileHandler.pattern=%h/java%u.log
java.util.logging.FileHandler.pattern=log/java%u.log
# Max size of output file (bytes):
java.util.logging.FileHandler.limit=50000
# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1
# Formatting
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
#java.util.logging.FileHandler.formatter=java.util.logging.XMLFormatter