Top Fields Methods
org.apache.sshd.common.util.logging

public Interface SimplifiedLog

Known Direct Implementers
org.apache.sshd.common.util.logging.SimplifiedLoggerSkeleton
Imports
java.util.logging.Level

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final SimplifiedLog
EMPTY

An "empty" SimplifiedLog that does nothing

Method Summary

Modifier and TypeMethod and Description
public default void
public default void
public default void
public default void
public default void
info(String msg)

public default void
info(String msg, Throwable err)

public default boolean
public static boolean
public boolean
public default boolean
public static boolean
public default boolean
public static boolean
public static boolean

Returns:

true if the evaluated level is above the required threshold. Note(s):
  • If either argument is null then result is false.
  • If the evaluated level is Level#OFF then result is false regardless of the threshold.
  • If the threshold is Level#ALL and the evaluated level is not Level#OFF the result is true.
  • Otherwise, the evaluated level Level#intValue() must be greater or equal to the threshold.
isLoggable
(Level
The Level to evaluate
level
,
Level
The threshold Level
threshold
)

Verifies if the given level is above the required threshold for logging.

public default boolean
public static boolean
public default boolean
public static boolean
public default void
log(Level level, Object message)

public void
log(Level level, Object message, Throwable t)

public default void
public default void
public default void
warn(String msg)

public default void
warn(String msg, Throwable err)

Field Detail

EMPTYback to summary
public static final SimplifiedLog EMPTY

An "empty" SimplifiedLog that does nothing

Method Detail

debugback to summary
public default void debug(String msg)
debugback to summary
public default void debug(String msg, Throwable err)
errorback to summary
public default void error(String msg)
errorback to summary
public default void error(String msg, Throwable err)
infoback to summary
public default void info(String msg)
infoback to summary
public default void info(String msg, Throwable err)
isDebugEnabledback to summary
public default boolean isDebugEnabled()
isDebugEnabledback to summary
public static boolean isDebugEnabled(Level level)
isEnabledLevelback to summary
public boolean isEnabledLevel(Level level)
isErrorEnabledback to summary
public default boolean isErrorEnabled()
isErrorEnabledback to summary
public static boolean isErrorEnabled(Level level)
isInfoEnabledback to summary
public default boolean isInfoEnabled()
isInfoEnabledback to summary
public static boolean isInfoEnabled(Level level)
isLoggableback to summary
public static boolean isLoggable(Level level, Level threshold)

Verifies if the given level is above the required threshold for logging.

Parameters
level:Level

The Level to evaluate

threshold:Level

The threshold Level

Returns:boolean

true if the evaluated level is above the required threshold. Note(s):

  • If either argument is null then result is false.
  • If the evaluated level is Level#OFF then result is false regardless of the threshold.
  • If the threshold is Level#ALL and the evaluated level is not Level#OFF the result is true.
  • Otherwise, the evaluated level Level#intValue() must be greater or equal to the threshold.
isTraceEnabledback to summary
public default boolean isTraceEnabled()
isTraceEnabledback to summary
public static boolean isTraceEnabled(Level level)
isWarnEnabledback to summary
public default boolean isWarnEnabled()
isWarnEnabledback to summary
public static boolean isWarnEnabled(Level level)
logback to summary
public default void log(Level level, Object message)
logback to summary
public void log(Level level, Object message, Throwable t)
traceback to summary
public default void trace(String msg)
traceback to summary
public default void trace(String msg, Throwable err)
warnback to summary
public default void warn(String msg)
warnback to summary
public default void warn(String msg, Throwable err)