Package | Description |
---|---|
org.snf4j.core |
Provides interfaces and classes implementing the core functionalities of the
API.
|
org.snf4j.core.logger |
Provides interfaces and classes used to separate the API from any specific
logger implementation.
|
org.snf4j.core.logger.impl |
Provides binding with third-party loggers (it is not a part of the core API).
|
Constructor and Description |
---|
EngineDatagramSession(IEngine engine,
IDatagramHandler handler,
ILogger logger)
Constructs a datagram-oriented session associated with a protocol engine and
a handler.
|
EngineDatagramSession(IEngine engine,
SocketAddress remoteAddress,
IDatagramHandler handler,
ILogger logger)
Constructs a datagram-oriented session associated with a protocol engine and
a handler.
|
EngineDatagramSession(String name,
IEngine engine,
IDatagramHandler handler,
ILogger logger)
Constructs a named datagram-oriented session associated with a protocol
engine and a handler.
|
EngineDatagramSession(String name,
IEngine engine,
SocketAddress remoteAddress,
IDatagramHandler handler,
ILogger logger)
Constructs a named datagram-oriented session associated with a protocol
engine and a handler.
|
EngineStreamSession(IEngine engine,
IStreamHandler handler,
ILogger logger)
Constructs a stream-oriented session associated with a protocol
engine and a handler.
|
EngineStreamSession(String name,
IEngine engine,
IStreamHandler handler,
ILogger logger)
Constructs a named stream-oriented session associated with a protocol
engine and a handler.
|
Modifier and Type | Class and Description |
---|---|
class |
NopLogger
Default implementation of the
ILogger interface that is
used by the API. |
Modifier and Type | Method and Description |
---|---|
static ILogger |
LoggerFactory.getLogger(Class<?> clazz)
Returns an instance of the
ILogger interface that is appropriate for
the specified class. |
ILogger |
NopLoggerFactory.getLogger(String name)
Returns a logger that simply does not log any messages.
|
ILogger |
ILoggerFactory.getLogger(String name)
Returns an instance of the
ILogger interface that is appropriate for
the specified name. |
Modifier and Type | Method and Description |
---|---|
void |
IExceptionLogger.debug(ILogger logger,
String msg,
Object... args)
Logs a message at the DEBUG level with varying number of arguments.
|
void |
DefaultExceptionLogger.debug(ILogger logger,
String msg,
Object... args) |
void |
IExceptionLogger.error(ILogger logger,
String msg,
Object... args)
Logs a message at the ERROR level with varying number of arguments.
|
void |
DefaultExceptionLogger.error(ILogger logger,
String msg,
Object... args) |
void |
IExceptionLogger.info(ILogger logger,
String msg,
Object... args)
Logs a message at the INFO level with varying number of arguments.
|
void |
DefaultExceptionLogger.info(ILogger logger,
String msg,
Object... args) |
void |
IExceptionLogger.trace(ILogger logger,
String msg,
Object... args)
Logs a message at the TRACE level with varying number of arguments.
|
void |
DefaultExceptionLogger.trace(ILogger loggger,
String msg,
Object... args) |
void |
IExceptionLogger.warn(ILogger logger,
String msg,
Object... args)
Logs a message at the WARN level with varying number of arguments.
|
void |
DefaultExceptionLogger.warn(ILogger logger,
String msg,
Object... args) |
Modifier and Type | Method and Description |
---|---|
ILogger |
Log4j2LoggerFactory.getLogger(String name) |
ILogger |
Slf4jLoggerFactory.getLogger(String name) |
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.