tigase.util.log

## Class LogFormatter

- java.lang.Object
- - java.util.logging.Formatter
  - - tigase.util.log.LogFormatter

-     public class LogFormatter
      extends Formatter

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Map<Integer,LogWithStackTraceEntry>` | `errors`
    `protected Date` | `timestamp`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogFormatter()`
    `LogFormatter(boolean colorful)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `addError(Throwable thrown, String stack, String log_msg)`
    `static String` | `fillThrowable(Throwable throwable)`
    `String` | `format(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`

- - ### Field Detail

    - #### errors

          public static final Map<Integer,LogWithStackTraceEntry> errors

    - #### timestamp

          protected Date timestamp

  - ### Constructor Detail

    - #### LogFormatter

          public LogFormatter()

    - #### LogFormatter

          public LogFormatter(boolean colorful)

  - ### Method Detail

    - #### format

          public String format(LogRecord record)

      Specified by:
        `format` in class `Formatter`

    - #### addError

          protected void addError(Throwable thrown,
                                  String stack,
                                  String log_msg)

    - #### fillThrowable

          public static String fillThrowable(Throwable throwable)

Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.