xref: /OpenGrok/logging.properties (revision b34561d2c3d92fac37dbced05ba6a8738e3d20e9)
1*b34561d2SLubos Kosco############################################################
2*b34561d2SLubos Kosco#  	Logging Configuration File
3*b34561d2SLubos Kosco#
4*b34561d2SLubos Kosco# You can use a different file by specifying a filename
5*b34561d2SLubos Kosco# with the java.util.logging.config.file system property.
6*b34561d2SLubos Kosco# For example java -Djava.util.logging.config.file=myfile
7*b34561d2SLubos Kosco############################################################
8*b34561d2SLubos Kosco
9*b34561d2SLubos Kosco############################################################
10*b34561d2SLubos Kosco#  	Global properties
11*b34561d2SLubos Kosco############################################################
12*b34561d2SLubos Kosco
13*b34561d2SLubos Kosco# "handlers" specifies a comma separated list of log Handler
14*b34561d2SLubos Kosco# classes.  These handlers will be installed during VM startup.
15*b34561d2SLubos Kosco# Note that these classes must be on the system classpath.
16*b34561d2SLubos Kosco# By default we only configure a ConsoleHandler, which will only
17*b34561d2SLubos Kosco# show messages at the INFO and above levels.
18*b34561d2SLubos Kosco#handlers= java.util.logging.ConsoleHandler
19*b34561d2SLubos Kosco
20*b34561d2SLubos Kosco# To also add the FileHandler, use the following line instead.
21*b34561d2SLubos Koscohandlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
22*b34561d2SLubos Kosco
23*b34561d2SLubos Kosco# Default global logging level.
24*b34561d2SLubos Kosco# This specifies which kinds of events are logged across
25*b34561d2SLubos Kosco# all loggers.  For any given facility this global level
26*b34561d2SLubos Kosco# can be overriden by a facility specific level
27*b34561d2SLubos Kosco# Note that the ConsoleHandler also has a separate level
28*b34561d2SLubos Kosco# setting to limit messages printed to the console.
29*b34561d2SLubos Kosco#
30*b34561d2SLubos Kosco# Available logging levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
31*b34561d2SLubos Kosco# OFF will give no output, SEVERE will give very little output, FINEST and ALL will give lots of output.
32*b34561d2SLubos Kosco#
33*b34561d2SLubos Kosco.level= ALL
34*b34561d2SLubos Kosco
35*b34561d2SLubos Kosco############################################################
36*b34561d2SLubos Kosco# Handler specific properties.
37*b34561d2SLubos Kosco# Describes specific configuration info for Handlers.
38*b34561d2SLubos Kosco############################################################
39*b34561d2SLubos Kosco
40*b34561d2SLubos Kosco# default file output is in user's home directory.
41*b34561d2SLubos Kosco#java.util.logging.FileHandler.pattern = %hjava%u.log
42*b34561d2SLubos Koscojava.util.logging.FileHandler.pattern = opengrok%g.%u.log
43*b34561d2SLubos Koscojava.util.logging.FileHandler.limit = 52428800
44*b34561d2SLubos Koscojava.util.logging.FileHandler.count = 3
45*b34561d2SLubos Koscojava.util.logging.FileHandler.level = ALL
46*b34561d2SLubos Kosco#java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
47*b34561d2SLubos Koscojava.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
48*b34561d2SLubos Kosco
49*b34561d2SLubos Kosco# Limit the message that are printed on the console to INFO and above.
50*b34561d2SLubos Koscojava.util.logging.ConsoleHandler.level = INFO
51*b34561d2SLubos Koscojava.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
52*b34561d2SLubos Kosco
53*b34561d2SLubos Kosco
54*b34561d2SLubos Kosco############################################################
55*b34561d2SLubos Kosco# Facility specific properties.
56*b34561d2SLubos Kosco# Provides extra control for each logger.
57*b34561d2SLubos Kosco############################################################
58*b34561d2SLubos Kosco
59*b34561d2SLubos Kosco# For example, set the com.xyz.foo logger to only log SEVERE
60*b34561d2SLubos Kosco# messages:
61*b34561d2SLubos Kosco#com.xyz.foo.level = SEVERE
62