Class LogbackRecorder.Event

java.lang.Object
tech.jhipster.test.LogbackRecorder.Event
Enclosing class:
LogbackRecorder

public static final class LogbackRecorder.Event extends Object
A recorded event. It contains all information sent to the logger.
  • Method Details

    • getMarker

      public org.slf4j.Marker getMarker()
      Slf4j market used.
      Returns:
      the marker
    • getLevel

      public String getLevel()
      Level of the log.
      Returns:
      the level
    • getMessage

      public String getMessage()
      Message passed to the logger with the original placeholders ('{}').
      Returns:
      the logged message
    • getArguments

      public Object[] getArguments()
      The arguments passed to the logger to be used by a placeholder. Logged exceptions are not included.
      Returns:
      the parameters passed to the logger
    • getThrown

      public String getThrown()
      Logged exception passed in argument to the logger or null if none.
      Returns:
      the logged exception as exception.getClass().getName() + ": " + exception.getMessage()