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

public abstract Class AbstractLoggingBean

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.sshd.common.util.net.NetworkConnector, org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar, org.apache.sshd.common.util.threads.SshdThreadFactory, org.apache.sshd.common.config.keys.impl.AbstractIdentityResourceLoader, org.apache.sshd.common.config.keys.loader.AbstractKeyPairResourceParser, org.apache.sshd.common.file.nativefs.NativeFileSystemFactory, org.apache.sshd.common.future.AbstractSshFuture, org.apache.sshd.common.keyprovider.AbstractKeyPairProvider, org.apache.sshd.common.keyprovider.FileHostKeyCertificateProvider, org.apache.sshd.common.util.closeable.IoBaseCloseable, org.apache.sshd.common.util.io.ModifiableFileWatcher
Imports
java.util.concurrent.atomic.AtomicReference, org.apache.sshd.common.util.GenericUtils, org.slf4j.Logger, .LoggerFactory

Serves as a common base class for the vast majority of classes that require some kind of logging. Facilitates quick and easy replacement of the actual used logger from one framework to another
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected final Logger
private final AtomicReference<SimplifiedLog>

Constructor Summary

AccessConstructor and Description
protected
AbstractLoggingBean()

Default constructor - creates a logger using the full class name

protected
AbstractLoggingBean(String
The discriminator value - ignored if null or empty
discriminator
)

Create a logger for instances of the same class for which we might want to have a "discriminator" for them

protected
AbstractLoggingBean(Logger
The Logger instance to use - if null then one is retrieved using the full class name
logger
)

Method Summary

Modifier and TypeMethod and Description
protected void
debug(String message, Object o1, Object o2, Throwable t)

protected void
debug(String message, Object o1, Object o2, Object o3, Throwable t)

protected void
debug(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)

protected void
debug(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)

protected void
debug(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)

protected void
error(String message, Object o1, Object o2, Throwable t)

protected void
error(String message, Object o1, Object o2, Object o3, Throwable t)

protected void
error(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)

protected void
error(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)

protected void
error(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)

protected SimplifiedLog
protected void
info(String message, Object o1, Object o2, Throwable t)

protected void
info(String message, Object o1, Object o2, Object o3, Throwable t)

protected void
warn(String message, Object o1, Object o2, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Throwable t)

protected void
warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9, Throwable t)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
protected final Logger log
simplifiedLogback to summary
private final AtomicReference<SimplifiedLog> simplifiedLog

Constructor Detail

AbstractLoggingBeanback to summary
protected AbstractLoggingBean()

Default constructor - creates a logger using the full class name

See Also
AbstractLoggingBean(Logger)
AbstractLoggingBeanback to summary
protected AbstractLoggingBean(String discriminator)

Create a logger for instances of the same class for which we might want to have a "discriminator" for them

Parameters
discriminator:String

The discriminator value - ignored if null or empty

AbstractLoggingBeanback to summary
protected AbstractLoggingBean(Logger logger)
Parameters
logger:Logger

The Logger instance to use - if null then one is retrieved using the full class name

Method Detail

debugback to summary
protected void debug(String message, Object o1, Object o2, Throwable t)
debugback to summary
protected void debug(String message, Object o1, Object o2, Object o3, Throwable t)
debugback to summary
protected void debug(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)
debugback to summary
protected void debug(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)
debugback to summary
protected void debug(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)
errorback to summary
protected void error(String message, Object o1, Object o2, Throwable t)
errorback to summary
protected void error(String message, Object o1, Object o2, Object o3, Throwable t)
errorback to summary
protected void error(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)
errorback to summary
protected void error(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)
errorback to summary
protected void error(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)
getSimplifiedLoggerback to summary
protected SimplifiedLog getSimplifiedLogger()
infoback to summary
protected void info(String message, Object o1, Object o2, Throwable t)
infoback to summary
protected void info(String message, Object o1, Object o2, Object o3, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Throwable t)
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Throwable t)
Annotations
@SuppressWarnings:all
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Throwable t)
Annotations
@SuppressWarnings:all
warnback to summary
protected void warn(String message, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9, Throwable t)
Annotations
@SuppressWarnings:all