java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
org.glassfish.main.jul.handler.SimpleLogHandler
The simplest possible log handler.
Similar to ConsoleHandler except
- can be configured to use STDOUT instead of STDERR
- uses
OneLineFormatterby default
- Author:
- David Matejcek
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConfiguration property set of this handler. -
Constructor Summary
ConstructorsConstructorDescriptionConfigures the instance with properties prefixed by the name of this class.SimpleLogHandler(PrintStream printStream) Configures the instance with properties prefixed by the name of this class and sets the explicitPrintStream -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()ExecutesStreamHandler.flush()voidPublishes the record and callsStreamHandler.flush()Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStreamMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
SimpleLogHandler
public SimpleLogHandler()Configures the instance with properties prefixed by the name of this class. -
SimpleLogHandler
Configures the instance with properties prefixed by the name of this class and sets the explicitPrintStream- Parameters:
printStream-
-
-
Method Details
-
publish
Publishes the record and callsStreamHandler.flush()- Overrides:
publishin classStreamHandler
-
close
public void close()ExecutesStreamHandler.flush()- Overrides:
closein classStreamHandler
-