Top Description Inners Fields Constructors Methods
org.slf4j.helpers

public Class Reporter

extends Object
Class Inheritance
Imports
java.io.PrintStream

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)} 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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
Reporter.Level

this class is used internally by Reporter

private static enum

Field Summary

Modifier and TypeField and Description
private static final Reporter.Level
pack-priv static final String
pack-priv static final String
pack-priv static final String
public static final String
SLF4J_INTERNAL_REPORT_STREAM_KEY

This system property controls the target for internal reports output by SLF4J.

public static final String
SLF4J_INTERNAL_VERBOSITY_KEY

This system property controls the internal level of chattiness of SLF4J.

pack-priv static final String
private static final String[]
private static final Reporter.TargetChoice

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
debug(String
the message text
msg
)

Report an internal message of level DEBUG.

public static final void
error(String
the message text
msg
,
Throwable
a Throwable
t
)

Report an internal message of level "ERROR accompanied by a Throwable.

public static final void
error(String
the message text
msg
)

Report an internal message of level "ERROR".

private static PrintStream
private static Reporter.TargetChoice
public static void
info(String
the message text
msg
)

Report an internal message of level INFO.

private static Reporter.Level
pack-priv static boolean
public static final void
warn(String
the message text
msg
)

Report an internal message of level "WARN".

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INTERNAL_VERBOSITYback to summary
private static final Reporter.Level INTERNAL_VERBOSITY
SLF4J_DEBUG_PREFIXback to summary
pack-priv static final String SLF4J_DEBUG_PREFIX
SLF4J_ERROR_PREFIXback to summary
pack-priv static final String SLF4J_ERROR_PREFIX
SLF4J_INFO_PREFIXback to summary
pack-priv static final String SLF4J_INFO_PREFIX
SLF4J_INTERNAL_REPORT_STREAM_KEYback to summary
public static final 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".

SLF4J_INTERNAL_VERBOSITY_KEYback to summary
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".

SLF4J_WARN_PREFIXback to summary
pack-priv static final String SLF4J_WARN_PREFIX
SYSOUT_KEYSback to summary
private static final String[] SYSOUT_KEYS
TARGET_CHOICEback to summary
private static final Reporter.TargetChoice TARGET_CHOICE

Constructor Detail

Reporterback to summary
public Reporter()

Method Detail

debugback to summary
public static void debug(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_KEY system property is set to "DEBUG" and disabled when set to "INFO", "WARN" or "ERROR". By default, SLF4J_INTERNAL_VERBOSITY_KEY is set to "INFO".

Parameters
msg:String

the message text

Since
2.0.16
errorback to summary
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:String

the message text

t:Throwable

a Throwable

errorback to summary
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:String

the message text

getTargetback to summary
private static PrintStream getTarget()
getTargetChoiceback to summary
private static Reporter.TargetChoice getTargetChoice()
infoback to summary
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 "DEBUG" or "INFO" and disabled when set to "WARN" or "ERROR". By default, SLF4J_INTERNAL_VERBOSITY_KEY is set to "INFO".

Parameters
msg:String

the message text

initVerbosityback to summary
private static Reporter.Level initVerbosity()
isEnabledForback to summary
pack-priv static boolean isEnabledFor(Reporter.Level level)
warnback to summary
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 "DEBUG", "INFO" or "WARN" and disabled when set to "ERROR". By default, SLF4J_INTERNAL_VERBOSITY_KEY is set to "INFO".

Parameters
msg:String

the message text

org.slf4j.helpers back to summary

private final Enum Reporter.Level

extends Enum<Reporter.Level>
Class Inheritance

this class is used internally by Reporter

Field Summary

Modifier and TypeField and Description
public static final Reporter.Level
public static final Reporter.Level
public static final Reporter.Level
pack-priv int
public static final Reporter.Level

Constructor Summary

AccessConstructor and Description
private
Level(int levelInt)

Method Summary

Modifier and TypeMethod and Description
private int
public static Reporter.Level
public static Reporter.Level[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEBUGback to summary
public static final Reporter.Level DEBUG
ERRORback to summary
public static final Reporter.Level ERROR
INFOback to summary
public static final Reporter.Level INFO
levelIntback to summary
pack-priv int levelInt
WARNback to summary
public static final Reporter.Level WARN

Constructor Detail

Levelback to summary
private Level(int levelInt)

Method Detail

getLevelIntback to summary
private int getLevelInt()
valueOfback to summary
public static Reporter.Level valueOf(String name)
valuesback to summary
public static Reporter.Level[] values()
org.slf4j.helpers back to summary

private final Enum Reporter.TargetChoice

extends Enum<Reporter.TargetChoice>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Reporter.TargetChoice
public static final Reporter.TargetChoice

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Reporter.TargetChoice
public static Reporter.TargetChoice[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Stderrback to summary
public static final Reporter.TargetChoice Stderr
Stdoutback to summary
public static final Reporter.TargetChoice Stdout

Constructor Detail

TargetChoiceback to summary
private TargetChoice()

Method Detail

valueOfback to summary
public static Reporter.TargetChoice valueOf(String name)
valuesback to summary
public static Reporter.TargetChoice[] values()