Class PlainHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
com.xinapse.util.logging.PlainHandler
A
PlainHandler publishes log records to
System.out with no formatting.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAFormatterthat writes plain text messages. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aStreamHandlerthat publishes log records to System.out with plain formatting. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Forces any data that may have been buffered to the underlying output devices, but does not close the Stream.Methods inherited from class StreamHandler
flush, isLoggable, publish, setEncodingMethods inherited from class Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
PlainHandler
public PlainHandler()Constructs aStreamHandlerthat publishes log records to System.out with plain formatting.
-
-
Method Details
-
close
public void close()Forces any data that may have been buffered to the underlying output devices, but does not close the Stream.In case of an I/O failure, the
ErrorManagers of thisPlainHandlerwill be informed, but the caller of this method will not receive an exception.- Overrides:
closein classStreamHandler
-