Package emissary.core.channels
Class LoggingChannelFactory
- java.lang.Object
-
- emissary.core.channels.LoggingChannelFactory
-
public final class LoggingChannelFactory extends Object
This class creates a SeekableByteChannelFactory for logging accesses to every method on the SeekableByteChannel. It is intended only for development/debugging purposes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SeekableByteChannelFactory
create(SeekableByteChannelFactory seekableByteChannelFactory, String identifier, org.slf4j.Logger logger, boolean logStackTrace)
Creates a SeekableByteChannelFactory for logging accesses to every method on the SeekableByteChannel.
-
-
-
Method Detail
-
create
public static SeekableByteChannelFactory create(SeekableByteChannelFactory seekableByteChannelFactory, String identifier, org.slf4j.Logger logger, boolean logStackTrace)
Creates a SeekableByteChannelFactory for logging accesses to every method on the SeekableByteChannel.- Parameters:
seekableByteChannelFactory
- that creates the SeekableByteChannel to wrap.identifier
- that is added to the log message.logger
- to use for logging.logStackTrace
- specifies whether a stack trace should be added to the log message.- Returns:
- the logging SeekableByteChannelFactory
-
-