|Constructor and Description|
|Modifier and Type||Method and Description|
public static RuntimeLogger fromConfigurationFile(String aElementPath, String aConfigFileName) throws LoggerInstantiationRuntimeException
RuntimeLoggerfrom the referenced configuration file (usually "
runtimelogger-config.xml") which's declaration is identified in the configuration XML structure at the given element path. The applications base directory (where your JAR or your classes reside) is taken and a list of directories (as defined in the
Folders.CONFIG_DIRS) relative to this base directory is generated: The actual directories being looked at for the config file (in case them exist) are as follows, relative to your applications base directory:
runtimelogger-config.xml" file), then your path_to_your_config_dir is placed first in the list of configuration directories to look at (in case the directory exists).See
aElementPath- The element path in the XML file identifying the logger's configuration.
aConfigFileName- The file to load the
RuntimeLoggerinstance being created.
LoggerInstantiationRuntimeException- Thrown in case instantiating a
Copyright © 2017. All rights reserved.