| Modifier and Type | Class and Description |
|---|---|
| public static interface | Logger.ChoiceOfMessageSupplier
A kind of |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public default void | errorOrDebug(Logger.
the messageSupplierChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for ERROR levelConvenience method to log a message that is different according to the log level. |
| public default void | errorOrDebug(Logger.
the messageSupplier,ChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for ERROR levelthe cause)Throwable the original exception to be loggedConvenience method to log an exception (throwable), with an accompanying message that is different according to the log level. |
| public String | |
| public void | |
| public void | |
| public void | |
| public default void | infoOrDebug(Logger.
the messageSupplierChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for INFO levelConvenience method to log a message that is different according to the log level. |
| public default void | infoOrDebug(Logger.
the messageSupplier,ChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for INFO levelthe cause)Throwable the original exception to be loggedConvenience method to log an exception (throwable), with an accompanying message that is different according to the log level. |
| public boolean | Returns: True if this Logger is enabled for the DEBUG level, false otherwise.Is the logger instance enabled for the DEBUG level? |
| public boolean | Returns: True if this Logger is enabled for the ERROR level, false otherwise.Is the logger instance enabled for the ERROR level? |
| public boolean | Returns: True if this Logger is enabled for the INFO level, false otherwise.Is the logger instance enabled for the INFO level? |
| public boolean | Returns: True if this Logger is enabled for the TRACE level, false otherwise.Is the logger instance enabled for the TRACE level? |
| public boolean | Returns: True if this Logger is enabled for the WARN level, false otherwise.Is the logger instance enabled for the WARN level? |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public default void | warnOrDebug(Logger.
the messageSupplierChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for WARN levelConvenience method to log a message that is different according to the log level. |
| public default void | warnOrDebug(Logger.
the messageSupplier,ChoiceOfMessageSupplier invoked in priority
with true for the DEBUG level message, or false for WARN levelthe cause)Throwable the original exception to be loggedConvenience method to log an exception (throwable), with an accompanying message that is different according to the log level. |
| debug | back to summary |
|---|---|
| public void debug(String msg) Log a message at the DEBUG level.
| |
| debug | back to summary |
|---|---|
| public void debug(String format, Object... arguments) Log a message at the DEBUG level according to the specified format and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the DEBUG level. However, this variant incurs the hidden
(and relatively small) cost of creating an | |
| debug | back to summary |
|---|---|
| public void debug(String msg, Throwable t) Log an exception (throwable) at the DEBUG level with an accompanying message. | |
| error | back to summary |
|---|---|
| public void error(String msg) Log a message at the ERROR level.
| |
| error | back to summary |
|---|---|
| public void error(String format, Object... arguments) Log a message at the ERROR level according to the specified format and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the ERROR level. However, this variant incurs the hidden
(and relatively small) cost of creating an | |
| error | back to summary |
|---|---|
| public void error(String msg, Throwable t) Log an exception (throwable) at the ERROR level with an accompanying message. | |
| errorOrDebug | back to summary |
|---|---|
| public default void errorOrDebug(Logger. Convenience method to log a message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
| errorOrDebug | back to summary |
|---|---|
| public default void errorOrDebug(Logger. Convenience method to log an exception (throwable), with an accompanying
message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name of this
| |
| info | back to summary |
|---|---|
| public void info(String msg) Log a message at the INFO level.
| |
| info | back to summary |
|---|---|
| public void info(String format, Object... arguments) Log a message at the INFO level according to the specified format and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the INFO level. However, this variant incurs the hidden
(and relatively small) cost of creating an | |
| info | back to summary |
|---|---|
| public void info(String msg, Throwable t) Log an exception (throwable) at the INFO level with an accompanying message. | |
| infoOrDebug | back to summary |
|---|---|
| public default void infoOrDebug(Logger. Convenience method to log a message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
| infoOrDebug | back to summary |
|---|---|
| public default void infoOrDebug(Logger. Convenience method to log an exception (throwable), with an accompanying
message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
| isDebugEnabled | back to summary |
|---|---|
| public boolean isDebugEnabled() Is the logger instance enabled for the DEBUG level?
| |
| isErrorEnabled | back to summary |
|---|---|
| public boolean isErrorEnabled() Is the logger instance enabled for the ERROR level?
| |
| isInfoEnabled | back to summary |
|---|---|
| public boolean isInfoEnabled() Is the logger instance enabled for the INFO level?
| |
| isTraceEnabled | back to summary |
|---|---|
| public boolean isTraceEnabled() Is the logger instance enabled for the TRACE level?
| |
| isWarnEnabled | back to summary |
|---|---|
| public boolean isWarnEnabled() Is the logger instance enabled for the WARN level?
| |
| trace | back to summary |
|---|---|
| public void trace(String msg) Log a message at the TRACE level.
| |
| trace | back to summary |
|---|---|
| public void trace(String format, Object... arguments) Log a message at the TRACE level according to the specified format and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the TRACE level. However, this variant incurs the hidden
(and relatively small) cost of creating an | |
| trace | back to summary |
|---|---|
| public void trace(String msg, Throwable t) Log an exception (throwable) at the TRACE level with an accompanying message. | |
| warn | back to summary |
|---|---|
| public void warn(String msg) Log a message at the WARN level.
| |
| warn | back to summary |
|---|---|
| public void warn(String format, Object... arguments) Log a message at the WARN level according to the specified format and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the WARN level. However, this variant incurs the hidden
(and relatively small) cost of creating an | |
| warn | back to summary |
|---|---|
| public void warn(String msg, Throwable t) Log an exception (throwable) at the WARN level with an accompanying message. | |
| warnOrDebug | back to summary |
|---|---|
| public default void warnOrDebug(Logger. Convenience method to log a message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
| warnOrDebug | back to summary |
|---|---|
| public default void warnOrDebug(Logger. Convenience method to log an exception (throwable), with an accompanying
message that is different according to the log level.
In priority, DEBUG level is used if This can be used to log different level of details according to the active log level.
| |
java.util.function.Predicate and Supplier mix, provides two
variants of a message String depending on the level of detail desired.
| Modifier and Type | Method and Description |
|---|---|
| public String |
| get | back to summary |
|---|---|
| public String get(boolean isVerbose) Provide two possible versions of a message | |