Class DefaultLogFormatter
java.lang.Object
java.util.logging.Formatter
eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final DateTimeFormatterstatic final DefaultLogFormatterAn instance of the log formatter which does not append a line separator at the end of the formatting.static final DefaultLogFormatterAn instance of the log formatter which appends a line separator at the end of the formatting. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultLogFormatter(boolean closeWithLineSeparator) Constructs a new default log formatter instance. -
Method Summary
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
Field Details
-
END_CLEAN
An instance of the log formatter which does not append a line separator at the end of the formatting. -
END_LINE_SEPARATOR
An instance of the log formatter which appends a line separator at the end of the formatting. -
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