提交 0dac3c62 编写于 作者: A alanb

8003949: LogManager, downgrade normative reference to ${java.home}/lib/logging.properties

Reviewed-by: psandoz, mchung
上级 db756496
...@@ -56,20 +56,14 @@ import sun.security.action.GetPropertyAction; ...@@ -56,20 +56,14 @@ import sun.security.action.GetPropertyAction;
* At startup the LogManager class is located using the * At startup the LogManager class is located using the
* java.util.logging.manager system property. * java.util.logging.manager system property.
* <p> * <p>
* By default, the LogManager reads its initial configuration from * The LogManager defines two optional system properties that allow control over
* a properties file "lib/logging.properties" in the JRE directory. * the initial configuration:
* If you edit that property file you can change the default logging
* configuration for all uses of that JRE.
* <p>
* In addition, the LogManager uses two optional system properties that
* allow more control over reading the initial configuration:
* <ul> * <ul>
* <li>"java.util.logging.config.class" * <li>"java.util.logging.config.class"
* <li>"java.util.logging.config.file" * <li>"java.util.logging.config.file"
* </ul> * </ul>
* These two properties may be set via the Preferences API, or as * These two properties may be specified on the command line to the "java"
* command line property definitions to the "java" command, or as * command, or as system property definitions passed to JNI_CreateJavaVM.
* system property definitions passed to JNI_CreateJavaVM.
* <p> * <p>
* If the "java.util.logging.config.class" property is set, then the * If the "java.util.logging.config.class" property is set, then the
* property value is treated as a class name. The given class will be * property value is treated as a class name. The given class will be
...@@ -84,9 +78,10 @@ import sun.security.action.GetPropertyAction; ...@@ -84,9 +78,10 @@ import sun.security.action.GetPropertyAction;
* to specify a properties file (in java.util.Properties format). The * to specify a properties file (in java.util.Properties format). The
* initial logging configuration will be read from this file. * initial logging configuration will be read from this file.
* <p> * <p>
* If neither of these properties is defined then, as described * If neither of these properties is defined then the LogManager uses its
* above, the LogManager will read its initial configuration from * default configuration. The default configuration is typically loaded from the
* a properties file "lib/logging.properties" in the JRE directory. * properties file "{@code lib/logging.properties}" in the Java installation
* directory.
* <p> * <p>
* The properties for loggers and Handlers will have names starting * The properties for loggers and Handlers will have names starting
* with the dot-separated name for the handler or logger. * with the dot-separated name for the handler or logger.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册