|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.ConsoleHandler
fr.tireme.shared.logging.ConsoleOutHandler
public class ConsoleOutHandler
This Handler publishes log records to System.out. It is the only difference with the standard ConsoleHandler.
| Constructor Summary | |
|---|---|
ConsoleOutHandler()
Create a ConsoleHandler for System.err. |
|
| Method Summary | |
|---|---|
void |
close()
Override StreamHandler.close to do a flush but not to close the output stream. |
void |
publish(java.util.logging.LogRecord record)
Publish a LogRecord. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.logging.StreamHandler |
|---|
flush, isLoggable, setEncoding |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleOutHandler()
The ConsoleHandler is configured based on LogManager properties (or their default values).
| Method Detail |
|---|
public void publish(java.util.logging.LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
publish in class java.util.logging.ConsoleHandlerrecord - description of the log eventpublic void close()
close in class java.util.logging.ConsoleHandlerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||