@Deprecated public abstract class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static char |
CATEGORY_SEPARATOR
Deprecated.
Will be dropped in 3.3
|
Constructor and Description |
---|
Logger()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
debug(String message)
Deprecated.
Log a debug priority event.
|
abstract void |
debug(String message,
Throwable throwable)
Deprecated.
Log a debug priority event.
|
abstract void |
error(String message)
Deprecated.
Log a error priority event.
|
abstract void |
error(String message,
Throwable throwable)
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[] |
getChildren()
Deprecated.
Will be dropped in 3.3
|
abstract void |
info(String message)
Deprecated.
Log a info priority event.
|
abstract void |
info(String message,
Throwable throwable)
Deprecated.
Log a info priority event.
|
abstract boolean |
isDebugEnabled()
Deprecated.
Determine if messages of priority DEBUG will be logged.
|
abstract boolean |
isErrorEnabled()
Deprecated.
Determine if messages of priority ERROR will be logged.
|
abstract boolean |
isFatalErrorEnabled()
Deprecated.
Determine if messages of priority FATAL_ERROR will be logged.
|
abstract boolean |
isInfoEnabled()
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 |
isWarnEnabled()
Deprecated.
Determine if messages of priority WARN will be logged.
|
abstract void |
log(Priority priority,
String message)
Deprecated.
Log a event at specific priority with a certain message.
|
abstract void |
log(Priority priority,
String message,
Throwable throwable)
Deprecated.
Log a event at specific priority with a certain message and throwable.
|
void |
setAdditivity(boolean additivity)
Deprecated.
Will be dropped in 3.3
|
void |
setLogTargets(LogTarget[] logTargets)
Deprecated.
Will be dropped in 3.3
|
void |
setPriority(Priority priority)
Deprecated.
Will be dropped in 3.3
|
void |
unsetLogTargets()
Deprecated.
Will be dropped in 3.3
|
void |
unsetLogTargets(boolean recursive)
Deprecated.
Will be dropped in 3.3
|
void |
unsetPriority()
Deprecated.
Will be dropped in 3.3
|
void |
unsetPriority(boolean recursive)
Deprecated.
Will be dropped in 3.3
|
abstract void |
warn(String message)
Deprecated.
Log a warn priority event.
|
abstract void |
warn(String message,
Throwable throwable)
Deprecated.
Log a warn priority event.
|
@Deprecated public static final char CATEGORY_SEPARATOR
public abstract boolean isDebugEnabled()
public abstract void debug(String message, Throwable throwable)
message
- the messagethrowable
- the throwablepublic abstract void debug(String message)
message
- the messagepublic abstract boolean isInfoEnabled()
public abstract void info(String message, Throwable throwable)
message
- the messagethrowable
- the throwablepublic abstract void info(String message)
message
- the messagepublic abstract boolean isWarnEnabled()
public abstract void warn(String message, Throwable throwable)
message
- the messagethrowable
- the throwablepublic abstract void warn(String message)
message
- the messagepublic abstract boolean isErrorEnabled()
public abstract void error(String message, Throwable throwable)
message
- the messagethrowable
- the throwablepublic abstract void error(String message)
message
- the messagepublic abstract boolean isFatalErrorEnabled()
public abstract void fatalError(String message, Throwable throwable)
message
- the messagethrowable
- the throwablepublic abstract void fatalError(String message)
message
- the message@Deprecated public void setAdditivity(boolean additivity)
additivity
- true to make logger additive, false otherwisepublic abstract boolean isPriorityEnabled(Priority priority)
priority
- the prioritypublic abstract void log(Priority priority, String message, Throwable throwable)
priority
- the prioritymessage
- the messagethrowable
- the throwablepublic abstract void log(Priority priority, String message)
priority
- the prioritymessage
- the message@Deprecated public void setPriority(Priority priority)
priority
- the priority@Deprecated public void unsetPriority()
@Deprecated public void unsetPriority(boolean recursive)
recursive
- true to unset priority of all child loggers@Deprecated public void setLogTargets(LogTarget[] logTargets)
logTargets
- the Log Targets@Deprecated public void unsetLogTargets()
@Deprecated public void unsetLogTargets(boolean recursive)
recursive
- the recursion policy@Deprecated public Logger[] getChildren()
public abstract Logger getChildLogger(String subCategory)
subCategory
- the subcategory of this loggerIllegalArgumentException
- if subCategory has an empty element nameCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.