com.marklogic.io

## Class LogFormatter

- java.lang.Object
- - java.util.logging.Formatter
  - - com.marklogic.io.LogFormatter

-     public class LogFormatter
      extends java.util.logging.Formatter

  A configurable Log message formatter that prepends messages with time, level, thread and location information. The date/time format is configurable and the four meta-message attributes can be disabled if desired.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogFormatter()`
    `LogFormatter(java.util.Properties props, java.util.logging.LogManager lm)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `format(java.util.logging.LogRecord record)`

    - ### Methods inherited from class java.util.logging.Formatter

      `formatMessage, getHead, getTail`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LogFormatter

          public LogFormatter(java.util.Properties props,
                              java.util.logging.LogManager lm)

    - #### LogFormatter

          public LogFormatter()

  - ### Method Detail

    - #### format

          public java.lang.String format(java.util.logging.LogRecord record)

      Specified by:
        `format` in class `java.util.logging.Formatter`

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com