Class MavenFailOnSeverityLogger

java.lang.Object
org.slf4j.helpers.MarkerIgnoringBase
org.slf4j.impl.SimpleLogger
org.slf4j.impl.MavenSimpleLogger
org.slf4j.impl.MavenFailOnSeverityLogger
All Implemented Interfaces:
Serializable, Logger

public class MavenFailOnSeverityLogger extends MavenSimpleLogger
A proxy which enhances the MavenSimpleLogger with functionality to track whether a logging threshold is hit. Currently only support WARN and ERROR states, since it's been used for the --fail-on-severity flag.
See Also:
  • Field Details

    • name

      protected String name
  • Method Details

    • warn

      public void warn(String msg)
      A simple implementation which always logs messages of level WARN according to the format outlined above.
      Specified by:
      warn in interface Logger
      Overrides:
      warn in class SimpleLogger
    • warn

      public void warn(String format, Object arg)
      Perform single parameter substitution before logging the message of level WARN according to the format outlined above.
      Specified by:
      warn in interface Logger
      Overrides:
      warn in class SimpleLogger
    • warn

      public void warn(String format, Object arg1, Object arg2)
      Perform double parameter substitution before logging the message of level WARN according to the format outlined above.
      Specified by:
      warn in interface Logger
      Overrides:
      warn in class SimpleLogger
    • warn

      public void warn(String format, Object... argArray)
      Perform double parameter substitution before logging the message of level WARN according to the format outlined above.
      Specified by:
      warn in interface Logger
      Overrides:
      warn in class SimpleLogger
    • warn

      public void warn(String msg, Throwable t)
      Log a message of level WARN, including an exception.
      Specified by:
      warn in interface Logger
      Overrides:
      warn in class SimpleLogger
    • error

      public void error(String msg)
      A simple implementation which always logs messages of level ERROR according to the format outlined above.
      Specified by:
      error in interface Logger
      Overrides:
      error in class SimpleLogger
    • error

      public void error(String format, Object arg)
      Perform single parameter substitution before logging the message of level ERROR according to the format outlined above.
      Specified by:
      error in interface Logger
      Overrides:
      error in class SimpleLogger
    • error

      public void error(String format, Object arg1, Object arg2)
      Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.
      Specified by:
      error in interface Logger
      Overrides:
      error in class SimpleLogger
    • error

      public void error(String format, Object... argArray)
      Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.
      Specified by:
      error in interface Logger
      Overrides:
      error in class SimpleLogger
    • error

      public void error(String msg, Throwable t)
      Log a message of level ERROR, including an exception.
      Specified by:
      error in interface Logger
      Overrides:
      error in class SimpleLogger
    • getName

      public String getName()
      Specified by:
      getName in interface Logger
    • readResolve

      protected Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException