Class CachingLogger


  • public class CachingLogger
    extends Logger
    The caching logger stores all of the messages.

    You can retrieve them by calling getMessages.

    • Constructor Detail

      • CachingLogger

        public CachingLogger()
    • Method Detail

      • getMessages

        public java.util.List<java.lang.String> getMessages()
      • clearMessages

        public void clearMessages()
      • error

        public void error​(java.lang.String category,
                          java.lang.String format,
                          java.lang.Object... params)
        Description copied from class: Logger
        Issue an error message.
        Specified by:
        error in class Logger
        Parameters:
        category - the message category
        format - the format string
        params - message parameters
      • warn

        public void warn​(java.lang.String category,
                         java.lang.String format,
                         java.lang.Object... params)
        Description copied from class: Logger
        Issue a warning message.
        Specified by:
        warn in class Logger
        Parameters:
        category - the message category
        format - the format string
        params - message parameters
      • info

        public void info​(java.lang.String category,
                         java.lang.String format,
                         java.lang.Object... params)
        Description copied from class: Logger
        Issue an informational message.
        Specified by:
        info in class Logger
        Parameters:
        category - the message category
        format - the format string
        params - message parameters
      • debug

        public void debug​(java.lang.String category,
                          java.lang.String format,
                          java.lang.Object... params)
        Description copied from class: Logger
        Issue a debug message.
        Specified by:
        debug in class Logger
        Parameters:
        category - the message category
        format - the format string
        params - message parameters
      • trace

        public void trace​(java.lang.String category,
                          java.lang.String format,
                          java.lang.Object... params)
        Description copied from class: Logger
        Issue a trace message.
        Specified by:
        trace in class Logger
        Parameters:
        category - the message category
        format - the format string
        params - message parameters