|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is an afterthought. When we wanted to add a context logger,
| Method Summary | |
void |
addHandler(Handler handler)
The implementation of this method should add a handler to the Logger's list of Handlers. |
Filter |
getFilter()
The implementation of this method should return the Logger's filter. |
java.util.Iterator |
getHandlers()
The implementation of this method should return an Iterator for the handlerList. |
boolean |
isAsync()
The implementation of this method should return true if the logger can process log records asynchronously. |
boolean |
isEnabled()
The implementation of this method should return state of the Logger |
void |
log(java.lang.String rawMessage)
This method is for free form trace-logging where the level is assumed to be Trace and the message text does not represent a lookup key. |
void |
log(java.lang.String rawMessage,
int level)
This method is for free form logging where a level and the logging message are supplied. |
void |
log(java.lang.String key,
java.lang.Object[] insertValues)
This method is used to trace-log by key. |
void |
log(java.lang.String key,
java.lang.Object[] insertValues,
int level)
This method is used to log by key and level. |
void |
log(java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception)
Trace-log by key. |
void |
log(java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception,
int level)
Log by key and level. |
void |
log(java.lang.String topic,
java.lang.String rawMessage,
int level)
This method is for free form logging where a level and topic are provided in addition to the logging message. |
void |
log(java.lang.String topic,
java.lang.String key,
java.lang.Object[] insertValues,
int level)
This method is used to log by lookup key. |
void |
log(java.lang.String topic,
java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception,
int level)
Log a message by lookup key. |
void |
log(java.lang.String topic,
java.lang.String rawMessage,
java.lang.Throwable exception,
int level)
Log a message by lookup key. |
void |
log(java.lang.String rawMessage,
java.lang.Throwable exception)
Log a message and exception. |
void |
log(java.lang.String rawMessage,
java.lang.Throwable exception,
int level)
Log a message, exception and level. |
void |
log(java.lang.Throwable exception,
int level)
Log an exception with a level but without a message. |
boolean |
removeHandler(Handler handler)
The implementation of this method should remove a handler from the Logger's list of handlers. |
void |
setAsync(boolean async)
The implementation of this method should set the Logger's ability to process logRecords asynchronously. |
void |
setEnabled(boolean state)
The implementation of this method should sets the Logger's logging state. |
void |
setFilter(Filter filter)
The implementation of this method should give the Logger a Filter |
| Method Detail |
public void addHandler(Handler handler)
handler - the handler to add.public boolean removeHandler(Handler handler)
handler - public java.util.Iterator getHandlers()
public void setEnabled(boolean state)
state - true if the logger can currently log something.public boolean isEnabled()
public void setAsync(boolean async)
async - The new Async valuepublic boolean isAsync()
public void setFilter(Filter filter)
filter - the Logger's Filter.public Filter getFilter()
public void log(java.lang.String rawMessage)
rawMessage - the log message text or a log message key.
public void log(java.lang.String rawMessage,
int level)
rawMessage - the log message text or a log message key.level - the Level of importance or urgency
public void log(java.lang.String topic,
java.lang.String rawMessage,
int level)
topic - the topic to which the message pertainsrawMessage - the log message text or a log message key.level - the level of importance or urgency.
public void log(java.lang.String topic,
java.lang.String key,
java.lang.Object[] insertValues,
int level)
topic - the topic to which the message pertainskey - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.level - the level of importance or urgency.
public void log(java.lang.String key,
java.lang.Object[] insertValues)
key - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.
public void log(java.lang.String key,
java.lang.Object[] insertValues,
int level)
key - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.level - the level of importance or urgency.
public void log(java.lang.Throwable exception,
int level)
exception - the exception whose stack-trace should be logged.level - the level of importance or urgency.
public void log(java.lang.String rawMessage,
java.lang.Throwable exception)
rawMessage - the log message text or a log message key.exception - the exception whose stack-trace should be logged.
public void log(java.lang.String rawMessage,
java.lang.Throwable exception,
int level)
rawMessage - the log message text or a log message key.exception - the exception whose stack-trace should be logged.level - the level of importance or urgency.
public void log(java.lang.String topic,
java.lang.String rawMessage,
java.lang.Throwable exception,
int level)
topic - the topic to which the message pertainsexception - the exception whose stack-trace should be logged.level - the level of importance or urgency.rawMessage - Parameter Description
public void log(java.lang.String topic,
java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception,
int level)
topic - the topic to which the message pertainskey - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.exception - the exception whose stack-trace should be logged.level - the level of importance or urgency.
public void log(java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception)
key - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.exception - the exception whose stack-trace should be logged.
public void log(java.lang.String key,
java.lang.Object[] insertValues,
java.lang.Throwable exception,
int level)
key - the log message's key (as stored in resource bundle)insertValues - the array of objects used for substitution values.exception - the exception whose stack-trace should be logged.level - the level of importance or urgency.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||