public class LoggingEventConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
LOG_LINE_FORMAT
The log line format.
|
Constructor and Description |
---|
LoggingEventConverter()
Constructor for normal usage.
|
LoggingEventConverter(IThrowableProxyConverter iThrowableProxyConverter)
Constructor for unit testing.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convert(ch.qos.logback.classic.spi.LoggingEvent event)
Converts the LoggingEvent to a loggable string.
|
java.lang.String |
getTimestamp(java.util.Date timestamp)
Public method to check whether the timestamp is correct for the last week of december.
|
protected static final java.lang.String LOG_LINE_FORMAT
public LoggingEventConverter()
public LoggingEventConverter(IThrowableProxyConverter iThrowableProxyConverter)
iThrowableProxyConverter
- the converter to be used (e.g. a mock).public java.lang.String convert(ch.qos.logback.classic.spi.LoggingEvent event)
event
- the non-null event.public java.lang.String getTimestamp(java.util.Date timestamp)
timestamp
- The timestamp to convert.