net.i2p.util

## Class LogRecordFormatter

- java.lang.Object
- - net.i2p.util.LogRecordFormatter

-     class LogRecordFormatter
      extends Object

  Render a log record according to the log manager's settings

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static String` | `NL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogRecordFormatter()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `formatRecord(LogManager manager, LogRecord rec)`
    `(package private) static String` | `formatRecord(LogManager manager, LogRecord rec, boolean showDate)`
    `static String` | `getWhen(LogManager manager, LogRecord logRecord)`

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

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

- - ### Field Detail

    - #### NL

          static final String NL

  - ### Constructor Detail

    - #### LogRecordFormatter

          LogRecordFormatter()

  - ### Method Detail

    - #### formatRecord

          public static String formatRecord(LogManager manager,
                                            LogRecord rec)

    - #### formatRecord

          static String formatRecord(LogManager manager,
                                     LogRecord rec,
                                     boolean showDate)

      Parameters:
        `showDate` - if false, skip any date in the format (use when writing to wrapper log)

    - #### getWhen

          public static String getWhen(LogManager manager,
                                       LogRecord logRecord)