Uses of Class
java.util.logging.Formatter
| Package | Description |
|---|---|
| java.util.logging |
-
Uses of Formatter in java.util.logging
Subclasses of Formatter in java.util.logging Modifier and Type Class Description classSimpleFormatterSimpleFormattercan be used to print a summary of the information contained in aLogRecordobject in a human readable format.classXMLFormatterFormatter to convert aLogRecordinto an XML string.Methods in java.util.logging that return Formatter Modifier and Type Method Description FormatterHandler. getFormatter()Gets the formatter used by this handler to format the logging messages.Methods in java.util.logging with parameters of type Formatter Modifier and Type Method Description voidHandler. setFormatter(Formatter newFormatter)Sets the formatter to be used by this handler.Constructors in java.util.logging with parameters of type Formatter Constructor Description StreamHandler(OutputStream os, Formatter formatter)Constructs aStreamHandlerobject with the supplied output stream and formatter.