Package io.github.jhipster.test
Class LogbackRecorder.Event
- java.lang.Object
-
- io.github.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getArguments()The arguments passed to the logger to be used by a placeholder.StringgetLevel()Level of the log.org.slf4j.MarkergetMarker()Slf4j market used.StringgetMessage()Message passed to the logger with the original placeholders ('{}').StringgetThrown()Logged exception passed in argument to the logger or null if none.
-
-
-
Method Detail
-
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()
-
-