Package org.logevents.formatters
Class TTLLLogEventFormatter
- java.lang.Object
-
- org.logevents.formatters.TTLLLogEventFormatter
-
- All Implemented Interfaces:
Function<LogEvent,String>
,LogEventFormatter
public final class TTLLLogEventFormatter extends Object implements LogEventFormatter
A simple and convenientLogEventFormatter
which outputs Time, Thread, Level, Logger as well as the log message and stack trace. This is equivalent to:observer...formatter=PatternLogEventFormatter observer...formatter.pattern=%time [%thread] [%5level] [%logger]%mdc: %message
- Author:
- Johannes Brodwall
-
-
Constructor Summary
Constructors Constructor Description TTLLLogEventFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(LogEvent e)
void
configure(Configuration configuration)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.logevents.LogEventFormatter
getExceptionFormatter
-
-
-
-
Method Detail
-
configure
public void configure(Configuration configuration)
- Specified by:
configure
in interfaceLogEventFormatter
-
-