|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
Adapter to logging systems that intends to make Commons Logging optional on deployments running on JDK 1.4 or later.
Method Summary | |
---|---|
void |
debug(String name,
String message,
Throwable exception,
Object[] params)
Log a message at debug severity. |
void |
error(String name,
String message,
Throwable exception,
Object[] params)
Log a message at error severity. |
void |
fatal(String name,
String message,
Throwable exception,
Object[] params)
Log a message at fatal severity. |
void |
info(String name,
String message,
Throwable exception,
Object[] params)
Log a message at info severity. |
boolean |
isDebugEnabled(String name)
Is debug level debugging enabled on the specified logger? |
boolean |
isErrorEnabled(String name)
Is error level debugging enabled on the specified logger? |
boolean |
isFatalEnabled(String name)
Is fatal level debugging enabled on the specified logger? |
boolean |
isInfoEnabled(String name)
Is info level debugging enabled on the specified logger? |
boolean |
isTraceEnabled(String name)
Is trace level debugging enabled on the specified logger? |
boolean |
isWarnEnabled(String name)
Is warning level debugging enabled on the specified logger? |
void |
trace(String name,
String message,
Throwable exception,
Object[] params)
Log a message at trace severity. |
void |
warn(String name,
String message,
Throwable exception,
Object[] params)
Log a message at warning severity. |
Method Detail |
---|
boolean isTraceEnabled(String name)
Is trace level debugging enabled on the specified logger?
name
- Name of the logger to checkboolean isDebugEnabled(String name)
Is debug level debugging enabled on the specified logger?
name
- Name of the logger to checkboolean isInfoEnabled(String name)
Is info level debugging enabled on the specified logger?
name
- Name of the logger to checkboolean isWarnEnabled(String name)
Is warning level debugging enabled on the specified logger?
name
- Name of the logger to checkboolean isErrorEnabled(String name)
Is error level debugging enabled on the specified logger?
name
- Name of the logger to checkboolean isFatalEnabled(String name)
Is fatal level debugging enabled on the specified logger?
name
- Name of the logger to checkvoid trace(String name, String message, Throwable exception, Object[] params)
Log a message at trace severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for nonevoid debug(String name, String message, Throwable exception, Object[] params)
Log a message at debug severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for nonevoid info(String name, String message, Throwable exception, Object[] params)
Log a message at info severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for nonevoid warn(String name, String message, Throwable exception, Object[] params)
Log a message at warning severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for nonevoid error(String name, String message, Throwable exception, Object[] params)
Log a message at error severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for nonevoid fatal(String name, String message, Throwable exception, Object[] params)
Log a message at fatal severity.
name
- Name of the logger to usemessage
- Text message to record (treated as a message format if
the params
argument is not null)exception
- Exception to report, or null
for noneparams
- Message4 format replacement parameters, or
null
for none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |