Class CliLogger
java.lang.Object
org.slf4j.helpers.MarkerIgnoringBase
org.apache.sshd.common.util.logging.LoggerSkeleton
org.apache.sshd.common.util.logging.SimplifiedLoggerSkeleton
org.apache.sshd.cli.CliLogger
- All Implemented Interfaces:
Serializable, org.apache.sshd.common.util.logging.SimplifiedLog, org.slf4j.Logger
public class CliLogger
extends org.apache.sshd.common.util.logging.SimplifiedLoggerSkeleton
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateFormatprotected final PrintStreamprotected Stringprivate static final org.apache.sshd.common.util.io.output.NullPrintStreamprivate static final longprotected final LevelFields inherited from class org.apache.sshd.common.util.logging.SimplifiedLoggerSkeleton
EMPTYFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCliLogger(String name, Level threshold, PrintStream logStream) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.slf4j.LoggergetLogger(Class<?> clazz, Level threshold, PrintStream logStream) static org.slf4j.LoggergetLogger(String name, Level threshold, PrintStream logStream) getName()static org.slf4j.LoggergetSystemLogger(Class<?> clazz, Level threshold) static org.slf4j.LoggergetSystemLogger(String name, Level threshold) booleanisEnabledLevel(Level level) static booleanisEnabledVerbosityLogging(Level level) static voidlog(PrintStream logStream, Level level, Object msg) static voidlog(PrintStream logStream, Level level, Object msg, Throwable err) voidstatic <T extends Throwable>
TprintStackTrace(Appendable out, T reason) protected Objectstatic org.slf4j.LoggerresolveLogger(Class<?> clazz, Level threshold, PrintStream stdout, PrintStream stderr) static org.slf4j.LoggerresolveLogger(String name, Level threshold, PrintStream stdout, PrintStream stderr) static LevelresolveLoggingVerbosity(String... args) static LevelresolveLoggingVerbosity(String[] args, int maxIndex) static LevelresolveLoggingVerbosity(org.apache.sshd.common.PropertyResolver resolver, String... args) Looks for theConfigFileReaderSupport.LOG_LEVEL_CONFIG_PROPin the options.static PrintStreamresolvePrintStream(Level threshold, PrintStream stdout, PrintStream stderr) static org.slf4j.LoggerresolveSystemLogger(Class<?> clazz, Level threshold) static org.slf4j.LoggerresolveSystemLogger(String name, Level threshold) static PrintStreamresolveSystemPrintStream(Level threshold) static booleanshowError(PrintStream stderr, String message) Methods inherited from class org.apache.sshd.common.util.logging.SimplifiedLoggerSkeleton
debug, error, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, warnMethods inherited from class org.apache.sshd.common.util.logging.LoggerSkeleton
debug, debug, debug, debug, error, error, error, error, info, info, info, info, trace, trace, trace, trace, warn, warn, warn, warnMethods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.slf4j.Logger
getNameMethods inherited from interface org.apache.sshd.common.util.logging.SimplifiedLog
debug, error, info, log, trace, warn
-
Field Details
-
LOG_TIME_FORMATTER
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NULL_PRINT_STREAM
private static final org.apache.sshd.common.util.io.output.NullPrintStream NULL_PRINT_STREAM -
threshold
-
logStream
-
name
-
-
Constructor Details
-
CliLogger
-
-
Method Details
-
isEnabledLevel
-
log
-
log
-
log
-
resolveLoggingVerbosity
public static Level resolveLoggingVerbosity(org.apache.sshd.common.PropertyResolver resolver, String... args) Looks for theConfigFileReaderSupport.LOG_LEVEL_CONFIG_PROPin the options. If found, then uses it as the result. Otherwise, invokesresolveLoggingVerbosity(String...)- Parameters:
resolver- The-ooptions specified by the userargs- The command line arguments- Returns:
- The resolved verbosity level
-
resolveLoggingVerbosity
-
resolveLoggingVerbosity
-
resolveSystemLogger
-
resolveSystemLogger
-
resolveLogger
public static org.slf4j.Logger resolveLogger(Class<?> clazz, Level threshold, PrintStream stdout, PrintStream stderr) -
resolveLogger
public static org.slf4j.Logger resolveLogger(String name, Level threshold, PrintStream stdout, PrintStream stderr) -
showError
-
isEnabledVerbosityLogging
-
resolvePrintStream
public static PrintStream resolvePrintStream(Level threshold, PrintStream stdout, PrintStream stderr) -
printStackTrace
-
getSystemLogger
-
getSystemLogger
-
resolveSystemPrintStream
-
getLogger
-
getLogger
-
getName
- Specified by:
getNamein interfaceorg.slf4j.Logger
-
readResolve
- Throws:
ObjectStreamException
-