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