Class MavenFailOnSeverityLogger

java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.slf4j.simple.SimpleLogger
org.apache.maven.slf4j.MavenSimpleLogger
org.apache.maven.slf4j.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:
  • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger
    • 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 org.slf4j.helpers.AbstractLogger