Class LogRecord
java.lang.Object
de.hybris.platform.dataimportcommons.log.LogRecord
Represents a record of the captured log output.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves exception logged.getLevel()Retrieves log level, at which the message captured by this record was logged.org.slf4j.MarkerRetrieves marker used for logging the message.Retrieves the message logged.booleanDetermines whether an exception stack trace was logged with the message by passing exception as a separate parameter into the logging call.toString()
-
Method Details
-
getLevel
Retrieves log level, at which the message captured by this record was logged.- Returns:
- log level for this record.
-
getMessage
Retrieves the message logged.- Returns:
- message captured in this log record.
-
getException
Retrieves exception logged. This means the log was called by passing the exception as a parameter for logging, e.g.Logger.debug(String, Throwable)- Returns:
- an exception that was logged with the message or
null, if the message was logged without an exception.
-
isExceptionLogged
public boolean isExceptionLogged()Determines whether an exception stack trace was logged with the message by passing exception as a separate parameter into the logging call. For example,Logger.error(String, Throwable)- Returns:
true, if the exception stack trace was logged with the message;falseotherwise.
-
getMarker
@Nullable public org.slf4j.Marker getMarker()Retrieves marker used for logging the message.- Returns:
- marker used when the message was logged or
null, if the message was logged without a marker.
-
toString
-