public class RuntimeLoggerUtility extends Object
RuntimeLogger
type.Constructor and Description |
---|
RuntimeLoggerUtility() |
Modifier and Type | Method and Description |
---|---|
static RuntimeLogger |
fromConfigurationFile(String aElementPath,
String aConfigFileName)
Instantiates a
RuntimeLogger from the referenced configuration
file (usually "runtimelogger-config.xml ") which's
declaration is identified in the configuration XML structure at the given
element path. |
public static RuntimeLogger fromConfigurationFile(String aElementPath, String aConfigFileName) throws LoggerInstantiationRuntimeException
RuntimeLogger
from 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
SystemProperty.CONFIG_DIR
aElementPath
- The element path in the XML file identifying the
logger's configuration.aConfigFileName
- The file to load the RuntimeLogger
configuration from.RuntimeLogger
instance being created.LoggerInstantiationRuntimeException
- Thrown in case instantiating
a Logger
(RuntimeLogger
) failed.Copyright © 2017. All rights reserved.