Package se.datadosen.jalbum
Class MyConsoleHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
se.datadosen.jalbum.MyConsoleHandler
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
MyConsoleHandler
Create aConsoleHandler
forSystem.err
.The
ConsoleHandler
is configured based onLogManager
properties (or their default values).
-
-
Method Details
-
publish
Publish aLogRecord
.The logging request was made initially to a
Logger
object, which initialized theLogRecord
and forwarded it here.- Overrides:
publish
in classStreamHandler
- Parameters:
record
- description of the log event. A null record is silently ignored and is not published
-
close
public void close()OverrideStreamHandler.close
to do a flush but not to close the output stream. That is, we do not closeSystem.err
.- Overrides:
close
in classStreamHandler
-