Class MessageCollector
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.generator.MessageCollector
Wrapper for the
LoggerFactory
, collecting all logged messages.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for all error messages collected over all logger.static org.slf4j.Logger
Static builder for the wrapped logger.Getter for all warning messages collected over all logger.
-
Constructor Details
-
MessageCollector
public MessageCollector()
-
-
Method Details
-
getLogger
Static builder for the wrapped logger.- Parameters:
cls
- The class to build the logger for.- Returns:
- A logger statically collecting all logged messages in the
MessageCollector
.
-
getErrorMessages
Getter for all error messages collected over all logger.- Returns:
- A list containing all logged error messages.
-
getWarningMessages
Getter for all warning messages collected over all logger.- Returns:
- A list containing all logged warning messages.
-