When using JDK 1.4 or higher, logging will proceed through the built-in logging package provided by the java.util.logging package. For details on configuring the built-in logging system, please see the Java Logging Overview.
By default, JDK 1.4's logging package looks in the JAVA_HOME/lib/logging.properties file for logging configuration. This can be overridden with the java.util.logging.config.file system property. For example:
java -Djava.util.logging.config.file=mylogging.properties com.company.MyClass
Example 3.4. Log Properties
# specify the handlers to create in the root logger # (all loggers are children of the root logger) # the following creates two handlers handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler # set the default logging level for the root logger .level=ALL # set the default logging level for new ConsoleHandler instances java.util.logging.ConsoleHandler.level=INFO # set the default logging level for new FileHandler instances java.util.logging.FileHandler.level=ALL # set the default formatter for new ConsoleHandler instances java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter # set the default logging level for all Kodo logs kodo.Tool.level=INFO kodo.Runtime.level=INFO kodo.DataCache.level=INFO kodo.MetaData.level=INFO kodo.Enhance.level=INFO kodo.Query.level=INFO kodo.jdbc.SQL.level=INFO kodo.jdbc.JDBC.level=INFO kodo.jdbc.Schema.level=INFO