class LoggingHandler extends ChannelDuplexHandler {

    @Override
    public void connect(
            ChannelHandlerContext ctx,
            SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception {
        if (logger.isEnabled(internalLevel)) {
            logger.log(internalLevel, format(ctx, "CONNECT", remoteAddress, localAddress));
        }
        ctx.connect(remoteAddress, localAddress, promise);
    }

    public  LoggingHandler();
    public  LoggingHandler(LogLevel level);
    public  LoggingHandler(Class<?> clazz);
    public  LoggingHandler(Class<?> clazz, LogLevel level);
    public  LoggingHandler(String name);
    public  LoggingHandler(String name, LogLevel level);

}