|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ILogger declares methods that are implemented by all loggers.
| Method Summary | |
void |
disable()
Disable this logger. |
void |
enable()
Enable this particular logger. |
void |
event(java.lang.String category,
java.lang.Object event,
java.util.Date timestamp)
If enabled, log an event of the specified category. |
long |
getMask()
Return the mask that defines which events I should log. |
boolean |
isEnabled()
Return true if the logger is enabled |
boolean |
isLogging(long mask)
Return true if at the logger is logging a category defined by the mask. |
boolean |
isLogging(java.lang.String code)
Return true if the logger is logging the specified category. |
void |
setMask(long mask)
Set the mask that defines the events which I should log. |
void |
startLogging(java.lang.String category)
Start logging events of the specified category. |
void |
stopLogging(java.lang.String category)
Stop logging events of the specified category. |
| Method Detail |
public long getMask()
public void setMask(long mask)
mask - public boolean isLogging(long mask)
mask - The mask.public boolean isLogging(java.lang.String code)
code - The category.public void startLogging(java.lang.String category)
category - The category.public void stopLogging(java.lang.String category)
category - The category.public void enable()
public void disable()
public boolean isEnabled()
public void event(java.lang.String category,
java.lang.Object event,
java.util.Date timestamp)
category - The category.event - The event, which is often just a simple string.timestamp - The time of the event was logged.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||