|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
raccoon.core.log.AbsLogComponent
public abstract class AbsLogComponent
Contains common logic for all the implementing classes of ILogger
contained in this
package.
Field Summary | |
---|---|
static java.lang.String |
LOGGER_NAME
The string constant representing the logger name. |
(package private) java.lang.String |
mLoggerName
The name of the current logger. |
(package private) java.lang.String |
mPropertyFileName
The property file name that is used to configure this instance. |
static java.lang.String |
PROPERTY_FILE_NAME
The string constant representing the property file name. |
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
mConfigurableManager |
Fields inherited from class raccoon.core.types.AbsLoadable |
---|
mIsLoaded |
Fields inherited from class raccoon.core.types.AbsComponent |
---|
mIsInError |
Fields inherited from interface raccoon.api.log.ILogger |
---|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARN, PTY_LOGGER |
Constructor Summary | |
---|---|
AbsLogComponent()
Default constructor required for dynamic instanciation. |
Method Summary | |
---|---|
abstract java.lang.String |
debugLevelToString()
The debug level as a string. |
abstract java.lang.String |
errorLevelToString()
The error level as a string. |
static int |
getCallingClassLevel()
Undocumented method inserted for tutorial purposes. |
java.lang.String |
getCategoryName()
Deprecated. As of Raccoon v0.8 |
java.lang.String |
getLoggerName()
The logger under which this component is logging the information. |
protected abstract void |
getLogInstance()
Instanciates the logging element. |
java.lang.String |
getPropertyFileName()
Retrieve the name of the property file used to configure Log4j. |
abstract java.lang.String |
infoLevelToString()
The info level as a string. |
void |
load()
Invoked by the service manager to start this component once it has been configured. |
protected abstract void |
loadLoggers()
Loads the various loggers required to function. |
static void |
setCallingClassLevel(int pCallingClassLevel)
Undocumented method inserted for tutorial purposes. |
void |
setCategoryName(java.lang.String pCategoryName)
Deprecated. As of Raccoon v0.8 |
void |
setLoggerName(java.lang.String pLoggerName)
Defines the logger under which this component should log the information. |
void |
setPropertyFileName(java.lang.String pPropertyFileName)
Defines the property file name to be used in order to configure Log4j. |
abstract java.lang.String |
warnLevelToString()
The warn level as a string. |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
configureParameters, isStable, setConfigurableManager, setLogger |
Methods inherited from class raccoon.core.types.AbsLoadable |
---|
getLog, isInError, isInitialised, isRunning, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface raccoon.api.log.ILogger |
---|
debug, debug, debug, debug, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn |
Field Detail |
---|
java.lang.String mPropertyFileName
public static final java.lang.String PROPERTY_FILE_NAME
java.lang.String mLoggerName
public static final java.lang.String LOGGER_NAME
Constructor Detail |
---|
public AbsLogComponent()
Method Detail |
---|
public static int getCallingClassLevel()
public static void setCallingClassLevel(int pCallingClassLevel)
pCallingClassLevel
- some value of no interestpublic final java.lang.String getPropertyFileName()
public final void setPropertyFileName(java.lang.String pPropertyFileName) throws ResourceNotFoundException
pPropertyFileName
- the name of the property file that is located within the class path.
ResourceNotFoundException
public final java.lang.String getCategoryName()
getCategoryName
in interface ILogger
public final void setCategoryName(java.lang.String pCategoryName)
setCategoryName
in interface ILogger
pCategoryName
- the Log4j category to use for this session.public final java.lang.String getLoggerName()
getLoggerName
in interface ILogger
public final void setLoggerName(java.lang.String pLoggerName)
setLoggerName
in interface ILogger
pLoggerName
- the Log4j logger to use for this session.public final void load() throws LoadableException
false
and then set to true
once all the init code has been performed.
load
in interface ILoadable
load
in class AbsConfigurableLoadable
LoadableException
- if this component isn't initialisable or is already running.protected abstract void getLogInstance()
protected abstract void loadLoggers() throws LoadableException
LoadableException
- if the loggers couldn't be correctly loaded.public abstract java.lang.String debugLevelToString()
public abstract java.lang.String infoLevelToString()
public abstract java.lang.String warnLevelToString()
public abstract java.lang.String errorLevelToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |