Class Reporter
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
Report an internal message of level "ERROR".static final void
Report an internal message of level "ERROR accompanied by aThrowable
.static void
Report an internal message of level INFO.static final void
Report an internal message of level "WARN".
-
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
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
-
Reporter
public Reporter()
-
-
Method Details
-
info
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
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
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
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
-