org.jfree.base.log
public class: DefaultLogModule [javadoc |
source]
java.lang.Object
org.jfree.base.modules.DefaultModuleInfo
org.jfree.base.modules.AbstractModule
org.jfree.base.log.DefaultLogModule
All Implemented Interfaces:
Module, ModuleInfo
The module definition for the System.out-Logging. This is the default log
implementation and is provided to insert the logging initialisation in the
module loading process.
| Method from org.jfree.base.log.DefaultLogModule Summary: |
|---|
|
initialize |
| Methods from org.jfree.base.modules.AbstractModule: |
|---|
|
configure, getDescription, getName, getOptionalModules, getProducer, getRequiredModules, getSubSystem, isClassLoadable, isClassLoadable, loadModuleInfo, loadModuleInfo, performExternalInitialize, performExternalInitialize, setDescription, setName, setOptionalModules, setProducer, setRequiredModules, setSubSystem, toString |
| Methods from org.jfree.base.modules.DefaultModuleInfo: |
|---|
|
equals, getMajorVersion, getMinorVersion, getModuleClass, getPatchLevel, hashCode, setMajorVersion, setMinorVersion, setModuleClass, setPatchLevel, toString |
| Method from org.jfree.base.log.DefaultLogModule Detail: |
public void initialize(SubSystem subSystem) throws ModuleInitializeException {
if (LogConfiguration.isDisableLogging())
{
return;
}
if (LogConfiguration.getLogTarget().equals
(PrintStreamLogTarget.class.getName()))
{
DefaultLog.installDefaultLog();
Log.getInstance().addTarget(new PrintStreamLogTarget());
if ("true".equals(subSystem.getGlobalConfig().getConfigProperty
("org.jfree.base.LogAutoInit")))
{
Log.getInstance().init();
}
Log.info("Default log target started ... previous log messages " +
"could have been ignored.");
}
}
Initalizes the module. This method initializes the logging system, if the
System.out logtarget is selected. |