Package tech.jhipster.test
Class LogbackRecorder.Event
java.lang.Object
tech.jhipster.test.LogbackRecorder.Event
- Enclosing class:
- LogbackRecorder
A recorded event. It contains all information sent to the logger.
-
Method Summary
Modifier and TypeMethodDescriptionObject[]The arguments passed to the logger to be used by a placeholder.getLevel()Level of the log.org.slf4j.MarkerSlf4j market used.Message passed to the logger with the original placeholders ('{}').Logged exception passed in argument to the logger or null if none.
-
Method Details
-
getMarker
public org.slf4j.Marker getMarker()Slf4j market used.- Returns:
- the marker
-
getLevel
Level of the log.- Returns:
- the level
-
getMessage
Message passed to the logger with the original placeholders ('{}').- Returns:
- the logged message
-
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
Logged exception passed in argument to the logger or null if none.- Returns:
- the logged exception as
exception.getClass().getName() + ": " + exception.getMessage()
-