Package org.apache.log
Class Logger
java.lang.Object
org.apache.log.Logger
Deprecated.
Will be dropped in 3.3
The object interacted with by client objects to perform logging.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final charDeprecated.Will be dropped in 3.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidDeprecated.Log a debug priority event.abstract voidDeprecated.Log a debug priority event.abstract voidDeprecated.Log a error priority event.abstract voidDeprecated.Log a error priority event.abstract voidfatalError(String message) Deprecated.Log a fatalError priority event.abstract voidfatalError(String message, Throwable throwable) Deprecated.Log a fatalError priority event.abstract LoggergetChildLogger(String subCategory) Deprecated.Create a new child logger.Logger[]Deprecated.Will be dropped in 3.3abstract voidDeprecated.Log a info priority event.abstract voidDeprecated.Log a info priority event.abstract booleanDeprecated.Determine if messages of priority DEBUG will be logged.abstract booleanDeprecated.Determine if messages of priority ERROR will be logged.abstract booleanDeprecated.Determine if messages of priority FATAL_ERROR will be logged.abstract booleanDeprecated.Determine if messages of priority INFO will be logged.abstract booleanisPriorityEnabled(Priority priority) Deprecated.Determine if messages of priority will be logged.abstract booleanDeprecated.Determine if messages of priority WARN will be logged.abstract voidDeprecated.Log a event at specific priority with a certain message.abstract voidDeprecated.Log a event at specific priority with a certain message and throwable.voidsetAdditivity(boolean additivity) Deprecated.Will be dropped in 3.3voidsetLogTargets(LogTarget[] logTargets) Deprecated.Will be dropped in 3.3voidsetPriority(Priority priority) Deprecated.Will be dropped in 3.3voidDeprecated.Will be dropped in 3.3voidunsetLogTargets(boolean recursive) Deprecated.Will be dropped in 3.3voidDeprecated.Will be dropped in 3.3voidunsetPriority(boolean recursive) Deprecated.Will be dropped in 3.3abstract voidDeprecated.Log a warn priority event.abstract voidDeprecated.Log a warn priority event.
- 
Field Details- 
CATEGORY_SEPARATORDeprecated.Will be dropped in 3.3Separator character use to separate different categories- See Also:
 
 
- 
- 
Constructor Details- 
Loggerpublic Logger()Deprecated.
 
- 
- 
Method Details- 
isDebugEnabledpublic abstract boolean isDebugEnabled()Deprecated.Determine if messages of priority DEBUG will be logged.- Returns:
- true if DEBUG messages will be logged
 
- 
debugDeprecated.Log a debug priority event.- Parameters:
- message- the message
- throwable- the throwable
 
- 
debugDeprecated.Log a debug priority event.- Parameters:
- message- the message
 
- 
isInfoEnabledpublic abstract boolean isInfoEnabled()Deprecated.Determine if messages of priority INFO will be logged.- Returns:
- true if INFO messages will be logged
 
- 
infoDeprecated.Log a info priority event.- Parameters:
- message- the message
- throwable- the throwable
 
- 
infoDeprecated.Log a info priority event.- Parameters:
- message- the message
 
- 
isWarnEnabledpublic abstract boolean isWarnEnabled()Deprecated.Determine if messages of priority WARN will be logged.- Returns:
- true if WARN messages will be logged
 
- 
warnDeprecated.Log a warn priority event.- Parameters:
- message- the message
- throwable- the throwable
 
- 
warnDeprecated.Log a warn priority event.- Parameters:
- message- the message
 
- 
isErrorEnabledpublic abstract boolean isErrorEnabled()Deprecated.Determine if messages of priority ERROR will be logged.- Returns:
- true if ERROR messages will be logged
 
- 
errorDeprecated.Log a error priority event.- Parameters:
- message- the message
- throwable- the throwable
 
- 
errorDeprecated.Log a error priority event.- Parameters:
- message- the message
 
- 
isFatalErrorEnabledpublic abstract boolean isFatalErrorEnabled()Deprecated.Determine if messages of priority FATAL_ERROR will be logged.- Returns:
- true if FATAL_ERROR messages will be logged
 
- 
fatalErrorDeprecated.Log a fatalError priority event.- Parameters:
- message- the message
- throwable- the throwable
 
- 
fatalErrorDeprecated.Log a fatalError priority event.- Parameters:
- message- the message
 
- 
setAdditivityDeprecated.Will be dropped in 3.3Make this logger additive. I.e. Send all log events to parent loggers LogTargets regardless of whether or not the LogTargets have been overridden. This is derived from Log4js notion of Additivity.- Parameters:
- additivity- true to make logger additive, false otherwise
 
- 
isPriorityEnabledDeprecated.Determine if messages of priority will be logged.- Parameters:
- priority- the priority
- Returns:
- true if messages will be logged
 
- 
logDeprecated.Log a event at specific priority with a certain message and throwable.- Parameters:
- priority- the priority
- message- the message
- throwable- the throwable
 
- 
logDeprecated.Log a event at specific priority with a certain message.- Parameters:
- priority- the priority
- message- the message
 
- 
setPriorityDeprecated.Will be dropped in 3.3Set the priority for this logger.- Parameters:
- priority- the priority
 
- 
unsetPriorityDeprecated.Will be dropped in 3.3Unset the priority of Logger. (Thus it will use it's parent's priority or DEBUG if no parent.
- 
unsetPriorityDeprecated.Will be dropped in 3.3Unset the priority of Logger. (Thus it will use it's parent's priority or DEBUG if no parent. If recursive is true unset priorities of all child loggers.- Parameters:
- recursive- true to unset priority of all child loggers
 
- 
setLogTargetsDeprecated.Will be dropped in 3.3Set the log targets for this logger.- Parameters:
- logTargets- the Log Targets
 
- 
unsetLogTargetsDeprecated.Will be dropped in 3.3Unset the logtargets for this logger. This logger (and thus all child loggers who don't specify logtargets) will inherit from the parents LogTargets.
- 
unsetLogTargetsDeprecated.Will be dropped in 3.3Unset the logtargets for this logger and all child loggers if recursive is set. The loggers unset (and all child loggers who don't specify logtargets) will inherit from the parents LogTargets.- Parameters:
- recursive- the recursion policy
 
- 
getChildrenDeprecated.Will be dropped in 3.3Get all the child Loggers of current logger.- Returns:
- the child loggers
 
- 
getChildLoggerDeprecated.Create a new child logger. The category of child logger is [current-category].subcategory- Parameters:
- subCategory- the subcategory of this logger
- Returns:
- the new logger
- Throws:
- IllegalArgumentException- if subCategory has an empty element name
 
 
-