public override void ChannelRead(IChannelHandlerContext ctx, object msg) { var buffer = msg as IByteBuffer; if (buffer != null) { if (Logger.IsEnabled(InternalLevel)) { Logger.Log(InternalLevel, FormatByteBuffer("RECV", buffer)); } } ctx.FireChannelRead(msg); }
public bool IsEnabled() => _logger.IsEnabled(_level);
public override void ChannelRegistered(IChannelHandlerContext ctx) { if (Logger.IsEnabled(InternalLevel)) { Logger.Log(InternalLevel, Format(ctx, "REGISTERED")); } ctx.FireChannelRegistered(); }