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 relative to this base directory is
generated as defined in the RuntimeConsts.CONFIG_DIR_NAMES
: The
actual directories being looked at for the config file (in case them
exist) are as follows, relative to your applications base directory:
RuntimeConsts.SYS_PROP_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 © 2016. All rights reserved.