Class RecordingLogger

  • All Implemented Interfaces:
    org.eclipse.jetty.util.log.Logger

    public class RecordingLogger
    extends Object
    implements org.eclipse.jetty.util.log.Logger
    Log warnings into an array for later inspection.
    • Constructor Detail

      • RecordingLogger

        public RecordingLogger()
        Constructor for RecordingLogger.
      • RecordingLogger

        public RecordingLogger​(String name)
        Constructor for RecordingLogger.
        Parameters:
        name -
    • Method Detail

      • clear

        public static void clear()
        Clear the warnings, automatically done by AppServer.setUp()
      • getWarnings

        public static List<RecordingLogger.Warning> getWarnings()
        Get the warnings.
        Returns:
        the warnings (if any) from the last execution
      • getLogger

        public org.eclipse.jetty.util.log.Logger getLogger​(String name)
        Specified by:
        getLogger in interface org.eclipse.jetty.util.log.Logger
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.jetty.util.log.Logger
      • warn

        public void warn​(String msg,
                         Object arg0,
                         Object arg1)
        Warning
        Parameters:
        msg -
        arg0 -
        arg1 -
      • warn

        public void warn​(String msg,
                         Throwable th)
        Specified by:
        warn in interface org.eclipse.jetty.util.log.Logger
      • warn

        public void warn​(String msg)
        Warning
        Parameters:
        msg - warning message
      • debug

        public void debug​(String msg,
                          Object arg0,
                          Object arg1)
        Debug log
        Parameters:
        msg -
        arg0 -
        arg1 -
      • debug

        public void debug​(String msg,
                          Throwable th)
        Specified by:
        debug in interface org.eclipse.jetty.util.log.Logger
      • debug

        public void debug​(String msg)
        Debug log
        Parameters:
        msg - debug message
      • info

        public void info​(String msg,
                         Object arg0,
                         Object arg1)
        Info
        Parameters:
        msg -
        arg0 -
        arg1 -
      • info

        public void info​(String msg)
        Info
        Parameters:
        msg -
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.eclipse.jetty.util.log.Logger
      • setDebugEnabled

        public void setDebugEnabled​(boolean enabled)
        Specified by:
        setDebugEnabled in interface org.eclipse.jetty.util.log.Logger
      • warn

        public void warn​(String msg,
                         Object... args)
        Specified by:
        warn in interface org.eclipse.jetty.util.log.Logger
      • warn

        public void warn​(Throwable thrown)
        Specified by:
        warn in interface org.eclipse.jetty.util.log.Logger
      • info

        public void info​(String msg,
                         Object... args)
        Specified by:
        info in interface org.eclipse.jetty.util.log.Logger
      • info

        public void info​(Throwable thrown)
        Specified by:
        info in interface org.eclipse.jetty.util.log.Logger
      • info

        public void info​(String msg,
                         Throwable thrown)
        Specified by:
        info in interface org.eclipse.jetty.util.log.Logger
      • debug

        public void debug​(String msg,
                          Object... args)
        Specified by:
        debug in interface org.eclipse.jetty.util.log.Logger
      • debug

        public void debug​(Throwable thrown)
        Specified by:
        debug in interface org.eclipse.jetty.util.log.Logger
      • ignore

        public void ignore​(Throwable arg0)
        Specified by:
        ignore in interface org.eclipse.jetty.util.log.Logger
      • debug

        public void debug​(String msg,
                          long value)
        Specified by:
        debug in interface org.eclipse.jetty.util.log.Logger