|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.directj.jlogger.LogManager
This class is a manager for the logging output. By using this class, you can have more than one output, and a special format for each output. In fact, it is a class that have a formatter, an output and a level. If the information level is greater or equals than the manager's one, then the information is formatted using the Formatter class, and it is written using the Output class.
Formatter
,
Output
Field Summary | |
private Formatter |
format
The output formatter. |
private int |
level
The current level. |
private Output |
out
The output. |
Constructor Summary | |
LogManager(int _level,
Formatter _format,
Output _output)
Creates a new LogManager, with the specified logging level, format and output. |
Method Summary | |
boolean |
equals(java.lang.Object _obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
private boolean |
isPublishableLevel(int _type)
Says if the information is publishable or not. |
void |
log(LogRecord _rec)
This is the method that is used to publish the informations. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Formatter format
private Output out
private int level
Constructor Detail |
public LogManager(int _level, Formatter _format, Output _output)
_level
- The logging level._format
- The logging format._output
- The logging output.Method Detail |
public final void log(LogRecord _rec)
_rec
- The LogRecord to be print.private final boolean isPublishableLevel(int _type)
_type
- The information's type.
boolean
- True if the information is publishable, false otherwise.public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
_obj
- The reference object with which to compare.
boolean
- True if this object is the same as the obj argument; false otherwise.public int hashCode()
hashCode
in class java.lang.Object
int
- A hash code value for this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |