logging.properties revision 949
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Logging Configuration File
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# You can use a different file by specifying a filename
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# with the java.util.logging.config.file system property.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# For example java -Djava.util.logging.config.file=myfile
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Global properties
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# "handlers" specifies a comma separated list of log Handler
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# classes. These handlers will be installed during VM startup.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Note that these classes must be on the system classpath.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# By default we only configure a ConsoleHandler, which will only
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# show messages at the INFO and above levels.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#handlers= java.util.logging.ConsoleHandler
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# To also add the FileHandler, use the following line instead.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithhandlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
095776c9947349beefe060ebb7ad066c36eca540tavmjong-free
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Default global logging level.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# This specifies which kinds of events are logged across
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# all loggers. For any given facility this global level
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# can be overriden by a facility specific level
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Note that the ConsoleHandler also has a separate level
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# setting to limit messages printed to the console.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Available logging levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# OFF will give no output, SEVERE will give very little output, FINEST and ALL will give lots of output.
eb4caa8f4cdc2955b58dcd2de06fe770533414c8Jon A. Cruz#
eb4caa8f4cdc2955b58dcd2de06fe770533414c8Jon A. Cruz.level= ALL
3fad3df12ae2d320c12871d471eb0faf5f187cbdAlex Valavanis
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Handler specific properties.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Describes specific configuration info for Handlers.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# default file output is in user's home directory.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#java.util.logging.FileHandler.pattern = %hjava%u.log
4f505db7a53ea8939f34e9cff7f9e2f3cc8dd13atavmjong-freejava.util.logging.FileHandler.pattern = opengrok%g.%u.log
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.FileHandler.limit = 52428800
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.FileHandler.count = 3
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.FileHandler.level = ALL
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Limit the message that are printed on the console to INFO and above.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.ConsoleHandler.level = INFO
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithjava.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Facility specific properties.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Provides extra control for each logger.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith############################################################
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# For example, set the com.xyz.foo logger to only log SEVERE
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# messages:
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#com.xyz.foo.level = SEVERE
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith