Class Reporter

java.lang.Object
org.slf4j.helpers.Reporter

public class Reporter extends Object
An internally used class for reporting internal messages generated by SLF4J itself during initialization.

Internal reporting is performed by calling the info(String), warn(String) (String)} error(String) (String)} and error(String, Throwable) methods.

See SLF4J_INTERNAL_VERBOSITY_KEY and SLF4J_INTERNAL_REPORT_STREAM_KEY for configuration options.

Note that this system is independent of the logging back-end in use.

Since:
2.0.10
  • Field Details

    • SLF4J_INTERNAL_REPORT_STREAM_KEY

      This system property controls the target for internal reports output by SLF4J. Recognized values for this key are "System.out", "stdout", "sysout", "System.err", "stderr" and "syserr".

      By default, output is directed to "stderr".

      See Also:
    • SLF4J_INTERNAL_VERBOSITY_KEY

      public static final String SLF4J_INTERNAL_VERBOSITY_KEY
      This system property controls the internal level of chattiness of SLF4J. Recognized settings are "INFO", "WARN" and "ERROR". The default value is "INFO".
      See Also:
  • Constructor Details

  • Method Details

    • info

      public static void info(String msg)
      Report an internal message of level INFO. Message text is prefixed with the string "SLF4J(I)", with (I) standing as a shorthand for INFO.

      Messages of level INFO are be enabled when the SLF4J_INTERNAL_VERBOSITY_KEY system property is set to "INFO" and disabled when set to "WARN" or "ERROR". By default, SLF4J_INTERNAL_VERBOSITY_KEY is set to "INFO".

      Parameters:
      msg - the message text
    • warn

      public static final void warn(String msg)
      Report an internal message of level "WARN". Message text is prefixed with the string "SLF4J(W)", with (W) standing as a shorthand for WARN.

      Messages of level WARN are be enabled when the SLF4J_INTERNAL_VERBOSITY_KEY system property is set to "INFO" or "WARN" and disabled when set to "ERROR". By default, SLF4J_INTERNAL_VERBOSITY_KEY is set to "INFO".

      Parameters:
      msg - the message text
    • error

      public static final void error(String msg, Throwable t)
      Report an internal message of level "ERROR accompanied by a Throwable. Message text is prefixed with the string "SLF4J(E)", with (E) standing as a shorthand for ERROR.

      Messages of level ERROR are always enabled.

      Parameters:
      msg - the message text
      t - a Throwable
    • error

      public static final void error(String msg)
      Report an internal message of level "ERROR". Message text is prefixed with the string "SLF4J(E)", with (E) standing as a shorthand for ERROR.

      Messages of level ERROR are always enabled.

      Parameters:
      msg - the message text