Class Reporter
- java.lang.Object
-
- org.slf4j.helpers.Reporter
-
public class Reporter extends java.lang.Object
An internally used class for reporting internal messages generated by SLF4J itself, typically during initialization.Internal reporting is performed by calling the
debug(String),info(String),warn(String)(String)}error(String)(String)} anderror(String, Throwable)methods.See
SLF4J_INTERNAL_VERBOSITY_KEYandSLF4J_INTERNAL_REPORT_STREAM_KEYfor configuration options.Note that this system is independent of the logging back-end in use.
- Since:
- 2.0.10
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSLF4J_INTERNAL_REPORT_STREAM_KEYThis system property controls the target for internal reports output by SLF4J.static java.lang.StringSLF4J_INTERNAL_VERBOSITY_KEYThis system property controls the internal level of chattiness of SLF4J.
-
Constructor Summary
Constructors Constructor Description Reporter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddebug(java.lang.String msg)Report an internal message of level DEBUG.static voiderror(java.lang.String msg)Report an internal message of level "ERROR".static voiderror(java.lang.String msg, java.lang.Throwable t)Report an internal message of level "ERROR accompanied by aThrowable.static voidinfo(java.lang.String msg)Report an internal message of level INFO.static voidwarn(java.lang.String msg)Report an internal message of level "WARN".
-
-
-
Field Detail
-
SLF4J_INTERNAL_REPORT_STREAM_KEY
public static final java.lang.String 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:
- Constant Field Values
-
SLF4J_INTERNAL_VERBOSITY_KEY
public static final java.lang.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:
- Constant Field Values
-
-
Constructor Detail
-
Reporter
public Reporter()
-
-
Method Detail
-
debug
public static void debug(java.lang.String msg)
Report an internal message of level DEBUG. Message text is prefixed with the string "SLF4J(D)", with (D) standing as a shorthand for DEBUG.Messages of level DEBUG are be enabled when the
SLF4J_INTERNAL_VERBOSITY_KEYsystem property is set to "DEBUG" and disabled when set to "INFO", "WARN" or "ERROR". By default,SLF4J_INTERNAL_VERBOSITY_KEYis set to "INFO".- Parameters:
msg- the message text- Since:
- 2.0.16
-
info
public static void info(java.lang.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_KEYsystem property is set to "DEBUG" or "INFO" and disabled when set to "WARN" or "ERROR". By default,SLF4J_INTERNAL_VERBOSITY_KEYis set to "INFO".- Parameters:
msg- the message text
-
warn
public static final void warn(java.lang.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_KEYsystem property is set to "DEBUG", "INFO" or "WARN" and disabled when set to "ERROR". By default,SLF4J_INTERNAL_VERBOSITY_KEYis set to "INFO".- Parameters:
msg- the message text
-
error
public static final void error(java.lang.String msg, java.lang.Throwable t)
Report an internal message of level "ERROR accompanied by aThrowable. 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 textt- a Throwable
-
error
public static final void error(java.lang.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
-
-