Class DefaultLogFormatter

java.lang.Object
java.util.logging.Formatter
eu.cloudnetservice.common.log.defaults.DefaultLogFormatter

public final class DefaultLogFormatter extends Formatter
The default log formatter which prints out console messages plain without any special coloring. See the static fields of the class to access an instance of this formatter.
Since:
4.0
  • Field Details

    • END_CLEAN

      public static final DefaultLogFormatter END_CLEAN
      An instance of the log formatter which does not append a line separator at the end of the formatting.
    • END_LINE_SEPARATOR

      public static final DefaultLogFormatter END_LINE_SEPARATOR
      An instance of the log formatter which appends a line separator at the end of the formatting.
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
    • closeWithLineSeparator

      private final boolean closeWithLineSeparator
  • Constructor Details

    • DefaultLogFormatter

      private DefaultLogFormatter(boolean closeWithLineSeparator)
      Constructs a new default log formatter instance.
      Parameters:
      closeWithLineSeparator - if the messages formatted by this handler should get the line separator appended.
  • Method Details