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 Summary
Modifier and TypeFieldDescriptionstatic final char
Deprecated.Will be dropped in 3.3 -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Deprecated.Log a debug priority event.abstract void
Deprecated.Log a debug priority event.abstract void
Deprecated.Log a error priority event.abstract void
Deprecated.Log a error priority event.abstract void
fatalError
(String message) Deprecated.Log a fatalError priority event.abstract void
fatalError
(String message, Throwable throwable) Deprecated.Log a fatalError priority event.abstract Logger
getChildLogger
(String subCategory) Deprecated.Create a new child logger.Logger[]
Deprecated.Will be dropped in 3.3abstract void
Deprecated.Log a info priority event.abstract void
Deprecated.Log a info priority event.abstract boolean
Deprecated.Determine if messages of priority DEBUG will be logged.abstract boolean
Deprecated.Determine if messages of priority ERROR will be logged.abstract boolean
Deprecated.Determine if messages of priority FATAL_ERROR will be logged.abstract boolean
Deprecated.Determine if messages of priority INFO will be logged.abstract boolean
isPriorityEnabled
(Priority priority) Deprecated.Determine if messages of priority will be logged.abstract boolean
Deprecated.Determine if messages of priority WARN will be logged.abstract void
Deprecated.Log a event at specific priority with a certain message.abstract void
Deprecated.Log a event at specific priority with a certain message and throwable.void
setAdditivity
(boolean additivity) Deprecated.Will be dropped in 3.3void
setLogTargets
(LogTarget[] logTargets) Deprecated.Will be dropped in 3.3void
setPriority
(Priority priority) Deprecated.Will be dropped in 3.3void
Deprecated.Will be dropped in 3.3void
unsetLogTargets
(boolean recursive) Deprecated.Will be dropped in 3.3void
Deprecated.Will be dropped in 3.3void
unsetPriority
(boolean recursive) Deprecated.Will be dropped in 3.3abstract void
Deprecated.Log a warn priority event.abstract void
Deprecated.Log a warn priority event.
-
Field Details
-
CATEGORY_SEPARATOR
Deprecated.Will be dropped in 3.3Separator character use to separate different categories- See Also:
-
-
Constructor Details
-
Logger
public Logger()Deprecated.
-
-
Method Details
-
isDebugEnabled
public abstract boolean isDebugEnabled()Deprecated.Determine if messages of priority DEBUG will be logged.- Returns:
- true if DEBUG messages will be logged
-
debug
Deprecated.Log a debug priority event.- Parameters:
message
- the messagethrowable
- the throwable
-
debug
Deprecated.Log a debug priority event.- Parameters:
message
- the message
-
isInfoEnabled
public abstract boolean isInfoEnabled()Deprecated.Determine if messages of priority INFO will be logged.- Returns:
- true if INFO messages will be logged
-
info
Deprecated.Log a info priority event.- Parameters:
message
- the messagethrowable
- the throwable
-
info
Deprecated.Log a info priority event.- Parameters:
message
- the message
-
isWarnEnabled
public abstract boolean isWarnEnabled()Deprecated.Determine if messages of priority WARN will be logged.- Returns:
- true if WARN messages will be logged
-
warn
Deprecated.Log a warn priority event.- Parameters:
message
- the messagethrowable
- the throwable
-
warn
Deprecated.Log a warn priority event.- Parameters:
message
- the message
-
isErrorEnabled
public abstract boolean isErrorEnabled()Deprecated.Determine if messages of priority ERROR will be logged.- Returns:
- true if ERROR messages will be logged
-
error
Deprecated.Log a error priority event.- Parameters:
message
- the messagethrowable
- the throwable
-
error
Deprecated.Log a error priority event.- Parameters:
message
- the message
-
isFatalErrorEnabled
public abstract boolean isFatalErrorEnabled()Deprecated.Determine if messages of priority FATAL_ERROR will be logged.- Returns:
- true if FATAL_ERROR messages will be logged
-
fatalError
Deprecated.Log a fatalError priority event.- Parameters:
message
- the messagethrowable
- the throwable
-
fatalError
Deprecated.Log a fatalError priority event.- Parameters:
message
- the message
-
setAdditivity
Deprecated.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
-
isPriorityEnabled
Deprecated.Determine if messages of priority will be logged.- Parameters:
priority
- the priority- Returns:
- true if messages will be logged
-
log
Deprecated.Log a event at specific priority with a certain message and throwable.- Parameters:
priority
- the prioritymessage
- the messagethrowable
- the throwable
-
log
Deprecated.Log a event at specific priority with a certain message.- Parameters:
priority
- the prioritymessage
- the message
-
setPriority
Deprecated.Will be dropped in 3.3Set the priority for this logger.- Parameters:
priority
- the priority
-
unsetPriority
Deprecated.Will be dropped in 3.3Unset the priority of Logger. (Thus it will use it's parent's priority or DEBUG if no parent. -
unsetPriority
Deprecated.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
-
setLogTargets
Deprecated.Will be dropped in 3.3Set the log targets for this logger.- Parameters:
logTargets
- the Log Targets
-
unsetLogTargets
Deprecated.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. -
unsetLogTargets
Deprecated.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
-
getChildren
Deprecated.Will be dropped in 3.3Get all the child Loggers of current logger.- Returns:
- the child loggers
-
getChildLogger
Deprecated.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
-