|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.util.log.Logger
Logger is an abstract class that implements everything about an ILogger except for a concrete implementation of event().
| Constructor Summary | |
Logger()
|
|
Logger(long mask)
|
|
| Method Summary | |
void |
addMask(long mask)
Add the specified mask to the current mask setting. |
void |
disable()
Disable this logger. |
void |
enable()
Enable this particular logger. |
abstract 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 category)
Return true if the logger is logging the specified category. |
void |
removeMask(long mask)
Remove the specified mask from the current mask setting. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Logger()
public Logger(long mask)
mask - | Method Detail |
public boolean isLogging(long mask)
isLogging in interface ILoggermask - The mask.public boolean isLogging(java.lang.String category)
isLogging in interface ILoggercategory - The category.public long getMask()
getMask in interface ILoggerpublic void setMask(long mask)
setMask in interface ILoggermask - public void addMask(long mask)
mask - public void removeMask(long mask)
mask - public void startLogging(java.lang.String category)
startLogging in interface ILoggercategory - The category.public void stopLogging(java.lang.String category)
stopLogging in interface ILoggercategory - The category.public void disable()
ILogger
disable in interface ILoggerpublic void enable()
ILogger
enable in interface ILoggerpublic boolean isEnabled()
ILogger
isEnabled in interface ILogger
public abstract void event(java.lang.String category,
java.lang.Object event,
java.util.Date timestamp)
event in interface ILoggercategory - 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 | |||||||||