Class PluginConsoleLogger

java.lang.Object
org.apache.maven.plugin.surefire.log.PluginConsoleLogger
All Implemented Interfaces:
org.apache.maven.plugin.surefire.log.api.ConsoleLogger

public final class PluginConsoleLogger extends 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 Details

    • PluginConsoleLogger

      public PluginConsoleLogger(org.slf4j.Logger logger)
  • Method Details

    • isDebugEnabled

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

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

      public void debug(CharSequence content, Throwable error)
    • isInfoEnabled

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

      public void info(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(String message)
      Specified by:
      warning in interface org.apache.maven.plugin.surefire.log.api.ConsoleLogger
    • warning

      public void warning(CharSequence content, Throwable error)
    • isErrorEnabled

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

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

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

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