HexDumpProxy should log hex dump.

This commit is contained in:
Trustin Lee 2013-03-13 16:54:20 +09:00
parent 42e31a4445
commit 97b2feedec

View File

@ -17,8 +17,8 @@ package io.netty.example.proxy;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.logging.ByteLoggingHandler;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;
public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
@ -33,7 +33,7 @@ public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
@Override
public void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(
new LoggingHandler(LogLevel.INFO),
new ByteLoggingHandler(LogLevel.INFO),
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
}
}