logging.properties revision 5e728d8d8aa79fd035c038d12c3e5fe635cbd88e
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Properties file which configures the operation of the JDK
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# logging facility.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# The system will look for this config file, first using
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# a System property specified at startup:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller#
361ad5fce7939eb63cbb8dc8365e2564461986aaJim Mitchener# >java -Djava.util.logging.config.file=myLoggingConfigFilePath
361ad5fce7939eb63cbb8dc8365e2564461986aaJim Mitchener#
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# If this property is not specified, then the config file is
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# retrieved from its default location at:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller#
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# JDK_HOME/jre/lib/logging.properties
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Global properties
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# ------------------------------------------
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# The set of handlers to be loaded upon startup.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Comma-separated list of class names.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# (? LogManager docs say no comma here, but JDK example has comma.)
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# StreamHandler: A simple handler for writing formatted records to an OutputStream.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# ConsoleHandler: A simple handler for writing formatted records to System.err
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# FileHandler: A handler that writes formatted log records either to a single file, or to a set of rotating log files.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# SocketHandler: A handler that writes formatted log records to remote TCP ports.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# MemoryHandler: A handler that buffers log records in memory.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# handlers=java.util.logging.ConsoleHandler
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerhandlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Default global logging level.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# This specifies which kinds of events are logged across
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# all loggers. For any given facility this global level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# can be overriden by a facility specific level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Note that the ConsoleHandler also has a separate level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# setting to limit messages printed to the console.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Loggers and Handlers may override this level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller.level=INFO
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Loggers
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# ------------------------------------------
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Loggers are usually attached to packages.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Here, the level for each package is specified.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# The global level is used by default, so levels
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# specified here simply act as an override.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# The levels in descending order are:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# SEVERE (highest value)
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# WARNING
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# INFO
4ba1272bc3d76455c965ab0f3e9403cbb7a47cc2Jim Mitchener# CONFIG
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# FINE
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# FINER
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# FINEST (lowest value)
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Facility specific properties.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Provides extra control for each logger.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller#org.forgerock.openidm.provisioner.level = FINER
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller#org.forgerock.openidm.repo.level = FINER
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller#org.forgerock.openidm.recon.level = FINER
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# OpenICF is noisy at INFO level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millercom.forgerock.openicf.level=WARNING
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Logs the output from OSGi logging
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerorg.forgerock.openidm.logging = FINEST
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Handler specific properties.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Describes specific configuration info for Handlers.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller############################################################
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# --- ConsoleHandler ---
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Default: java.util.logging.ConsoleHandler.level = INFO
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Override of global logging level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.ConsoleHandler.level = ALL
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# specifies the name of the filter class to be associated with this handler,
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# defaults to {@code null} if this property is not found or has an invalid value.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# java.util.logging.ConsoleHandler.filter =
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Limit the message that are printed on the console to INFO and above.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# --- FileHandler ---
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Override of global logging level
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.level = ALL
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Naming style for the output file:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# (The output file is placed in the directory
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# defined by the "user.home" System property.)
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# java.util.logging.FileHandler.pattern = %h/java%u.log
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.pattern = logs/openidm%u.log
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Limiting size of output file in bytes:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.limit = 5242880
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Number of output files to cycle through, by appending an
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# integer to the base file name:
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.count = 5
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
4ba1272bc3d76455c965ab0f3e9403cbb7a47cc2Jim Mitchener# Style of output (Simple or XML):
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Writes brief "human-readable" summaries of log records.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# Writes detailed XML-structured information.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# specifies the character set encoding name.
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller# defaults to the default platform encoding
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Millerjava.util.logging.FileHandler.encoding = UTF-8
10ce1c22b1cd83482f0127254fe8a27610bb25f5Brendan Miller