java.lang.Object
de.hybris.platform.integrationservices.util.LogRecord

@Immutable public final class LogRecord extends Object
Represents a record of the captured log output.
  • Method Details

    • getLevel

      @Nonnull public LogLevel getLevel()
      Retrieves log level, at which the message captured by this record was logged.
      Returns:
      log level for this record.
    • getMessage

      public String getMessage()
      Retrieves the message logged.
      Returns:
      message captured in this log record.
    • getException

      @Nullable public Throwable 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; false otherwise.
    • 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

      public String toString()
      Overrides:
      toString in class Object