Class 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 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