Uses of Class java.util.logging.Formatter (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
java.util.logging.Formatter

- Packages that use Formatter
  Package | Description
  --- | ---
  java.util.logging | Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities.

- - ### Uses of Formatter in java.util.logging

    Subclasses of Formatter in java.util.logging
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SimpleFormatter` Print a brief summary of the `LogRecord` in a human readable format.
    `class` | `XMLFormatter` Format a LogRecord into a standard XML format.

    Methods in java.util.logging that return Formatter
    Modifier and Type | Method and Description
    --- | ---
    `Formatter` | Handler.`getFormatter()` Return the `Formatter` for this `Handler`.

    Methods in java.util.logging with parameters of type Formatter
    Modifier and Type | Method and Description
    --- | ---
    `void` | Handler.`setFormatter(Formatter newFormatter)` Set a `Formatter`.

    Constructors in java.util.logging with parameters of type Formatter
    Constructor and Description
    `StreamHandler(OutputStream out, Formatter formatter)` Create a `StreamHandler` with a given `Formatter` and output stream.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.