public class JulLogEvent extends Object implements LogEvent
Constructor and Description |
---|
JulLogEvent(LogRecord logRecord) |
Modifier and Type | Method and Description |
---|---|
long |
getLogTimestamp() |
Set<String> |
getMdcNames() |
String |
getMdcValue(String mdcName) |
String |
getMessage() |
Object[] |
getParameters() |
String |
getSyslogLevel() |
Throwable |
getThrowable() |
String |
getValue(LogMessageField field) |
Values |
getValues(MessageField field) |
public JulLogEvent(LogRecord logRecord)
public String getMessage()
getMessage
in interface LogEvent
public Object[] getParameters()
getParameters
in interface LogEvent
public Throwable getThrowable()
getThrowable
in interface LogEvent
public long getLogTimestamp()
getLogTimestamp
in interface LogEvent
public String getSyslogLevel()
getSyslogLevel
in interface LogEvent
public Values getValues(MessageField field)
public String getValue(LogMessageField field)
public String getMdcValue(String mdcName)
getMdcValue
in interface LogEvent
mdcName
- Name of the MDC entry.public Set<String> getMdcNames()
getMdcNames
in interface LogEvent
Copyright © 2013–2023. All rights reserved.