com.sun.sgs.impl.kernel
Class LoggerPropertiesInit
java.lang.Object
com.sun.sgs.impl.kernel.LoggerPropertiesInit
public class LoggerPropertiesInit
- extends Object
This class is used to initialize logging levels at system startup.
If the system property java.util.logging.config.class is set to this
class's name, the constructor for this class will be used to initialize
logging levels from several sources.
|
Constructor Summary |
LoggerPropertiesInit()
This class is instantiated if the system property
java.util.logging.config.class is set to this class's
name. |
|
Method Summary |
(package private) void |
noop()
This method exists to appease Checkstyle. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerPropertiesInit
public LoggerPropertiesInit()
throws IOException
- This class is instantiated if the system property
java.util.logging.config.class is set to this class's
name. Initialize logging levels according to the following rules.
In each of the rules below, the input stream from the file
"lib/logging.properties" from the JRE is concatenated with the
"source InputStream" and used
to set the logging levels with the
LogManager.readConfiguration(java.io.InputStream) method:
- If the system resource specified by the property
BootProperties.DEFAULT_LOG_PROPERTIES exists, and
the file specified by the system property
java.util.logging.config.file exists, use the concatenation of
input streams of these two items (in that order) as the source
InputStream.
- If one and only one of the resources mentioned above exists,
use it as the source
InputStream.
- If neither of the resources mentioned above exist, initialize
the logging levels according to the standard rules for the
LogManager as if neither java.util.logging.config.class
nor java.util.logging.config.file are set. In other words,
there is no "source InputStream" and the default
"lib/logging.properties" file is simply used.
Note that if both resources exist as in the first scenario above,
any property that is specified in both resources will retain the
value of the property from the java.util.logging.config.file.
- Throws:
IOException - if an error occurs reading the configuration
from the source InputStream
noop
void noop()
- This method exists to appease Checkstyle.
Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved