Class MessageCollector

java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.generator.MessageCollector

@Beta public class MessageCollector extends Object
Wrapper for the LoggerFactory, collecting all logged messages.
  • Constructor Details

    • MessageCollector

      public MessageCollector()
  • Method Details

    • getLogger

      @Nonnull public static org.slf4j.Logger getLogger(@Nonnull Class<?> cls)
      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

      @Nonnull public static List<String> getErrorMessages()
      Getter for all error messages collected over all logger.
      Returns:
      A list containing all logged error messages.
    • getWarningMessages

      @Nonnull public static List<String> getWarningMessages()
      Getter for all warning messages collected over all logger.
      Returns:
      A list containing all logged warning messages.