- java.lang.Object
-
- java.util.logging.Formatter
-
- de.carne.util.logging.LogLineFormatter
-
public class LogLineFormatter extends java.util.logging.FormatterFormatter implementation providing a simple static single line (except for stack trace information) log format.
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.format.DateTimeFormatterDATE_TIME_FORMATThe DateTimeFormatter used for record timestamp formatting.
-
Constructor Summary
Constructors Constructor Description LogLineFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(@Nullable java.util.logging.LogRecord logRecord)java.lang.StringformatMillis(java.util.logging.LogRecord logRecord)Formats a LogRecord's time attribute.
-
-
-
Method Detail
-
format
public java.lang.String format(@Nullable java.util.logging.LogRecord logRecord)
- Specified by:
formatin classjava.util.logging.Formatter
-
formatMillis
public java.lang.String formatMillis(java.util.logging.LogRecord logRecord)
Formats a LogRecord's time attribute.- Parameters:
logRecord- the LogRecord to format.- Returns:
- the formatted LogRecord time.
- See Also:
LogRecord.getMillis()
-
-