- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- de.carne.util.logging.ConsoleHandler
-
public class ConsoleHandler extends java.util.logging.StreamHandlerA Handler which makes use of the Console class.If the current VM has a Console attached any log messages issued to this handler will be written to this console. If the current VM has no Console attached the behavior depends on the handler's
consoleOnlyproperty. If this property is set totrue(default) log message are ignored. If this property is set tofalselog messages are written to System.out.
-
-
Constructor Summary
Constructors Constructor Description ConsoleHandler()Construct ConsoleHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidpublish(java.util.logging.LogRecord logRecord)-
Methods inherited from class java.util.logging.StreamHandler
isLoggable, setEncoding, setOutputStream
-
-
-
-
Constructor Detail
-
ConsoleHandler
public ConsoleHandler()
Construct ConsoleHandler.
-
-
Method Detail
-
publish
public void publish(java.util.logging.LogRecord logRecord)
- Overrides:
publishin classjava.util.logging.StreamHandler
-
flush
public void flush()
- Overrides:
flushin classjava.util.logging.StreamHandler
-
close
public void close()
- Overrides:
closein classjava.util.logging.StreamHandler
-
-