Class PluginConsoleLogger

  • All Implemented Interfaces:
    org.apache.maven.plugin.surefire.log.api.ConsoleLogger

    public final class PluginConsoleLogger
    extends java.lang.Object
    implements org.apache.maven.plugin.surefire.log.api.ConsoleLogger
    TODO remove this as thread safety should be handled by the underlying logging framework no need to add complexity Wrapper logger of miscellaneous implementations of Logger. This instance is synchronized. The logger operations are mutually exclusive to standard out, standard err and console err/warn/info/debug logger operations, see DefaultReporterFactory, TestSetRunListener.
    Since:
    2.20
    Author:
    Tibor Digana (tibor17)
    See Also:
    ConsoleLogger
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginConsoleLogger​(org.slf4j.Logger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.CharSequence content, java.lang.Throwable error)  
      void debug​(java.lang.String message)  
      void error​(java.lang.String message)  
      void error​(java.lang.String message, java.lang.Throwable t)  
      void error​(java.lang.Throwable t)  
      void info​(java.lang.String message)  
      boolean isDebugEnabled()  
      boolean isErrorEnabled()  
      boolean isInfoEnabled()  
      boolean isWarnEnabled()  
      void warning​(java.lang.CharSequence content, java.lang.Throwable error)  
      void warning​(java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginConsoleLogger

        public PluginConsoleLogger​(org.slf4j.Logger logger)
    • Method Detail

      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • debug

        public void debug​(java.lang.String message)
        Specified by:
        debug in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • debug

        public void debug​(java.lang.CharSequence content,
                          java.lang.Throwable error)
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • info

        public void info​(java.lang.String message)
        Specified by:
        info in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • warning

        public void warning​(java.lang.String message)
        Specified by:
        warning in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • warning

        public void warning​(java.lang.CharSequence content,
                            java.lang.Throwable error)
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • error

        public void error​(java.lang.String message)
        Specified by:
        error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • error

        public void error​(java.lang.String message,
                          java.lang.Throwable t)
        Specified by:
        error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
      • error

        public void error​(java.lang.Throwable t)
        Specified by:
        error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger