Class FastLogFormatter
java.lang.Object
java.util.logging.Formatter
services.moleculer.logger.FastLogFormatter
Fast log formatter for AsyncFileLogger. Generates nice, human-readable logs.
The lines of the generated log file are readable by humans and machines.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final char[]protected static final char[]protected static final Stringprotected static final char[]protected static final char[]protected static final char[]protected static final char[]protected static final char[]protected static final char[]protected final StringBuilderprotected intprotected static final char[]protected static final char[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intappendMessages(StringBuilder errors, Throwable t) protected voidappendMessages(LinkedList<String> list, Throwable t, int level) protected voidprotected StringnormalizeLine(String line) protected StringnormalizeWord(String word) Methods inherited from class Formatter
formatMessage, getHead, getTail
-
Field Details
-
BREAK
protected static final char[] BREAK -
BREAK_STRING
-
AT
protected static final char[] AT -
JAVA
protected static final char[] JAVA -
SEVERE
protected static final char[] SEVERE -
WARNING
protected static final char[] WARNING -
INFO
protected static final char[] INFO -
CONFIG
protected static final char[] CONFIG -
FINE
protected static final char[] FINE -
FINER
protected static final char[] FINER -
FINEST
protected static final char[] FINEST -
line
-
position
protected volatile int position
-
-
Constructor Details
-
FastLogFormatter
public FastLogFormatter()
-
-
Method Details
-
format
-
appendMessages
-
appendMessages
- Throws:
Exception
-
normalizeLine
-
normalizeWord
-
dump
-