Added LoggingHandler.getLevel()

This commit is contained in:
Trustin Lee 2009-06-19 09:39:31 +00:00
parent a902cbf970
commit 369a363855

View File

@ -39,7 +39,7 @@ import org.jboss.netty.logging.InternalLoggerFactory;
/**
* A {@link ChannelHandler} that logs all events via {@link InternalLogger}.
* By default, all events are logged in <tt>DEBUG</tt> level. You can extend
* By default, all events are logged at <tt>DEBUG</tt> level. You can extend
* this class and override {@link #log(ChannelEvent)} to change the default
* behavior.
*
@ -159,6 +159,14 @@ public class LoggingHandler implements ChannelUpstreamHandler, ChannelDownstream
return logger;
}
/**
* Returns the {@link InternalLogLevel} that this handler uses to log
* a {@link ChannelEvent}.
*/
public InternalLogLevel getLevel() {
return level;
}
/**
* Logs the specified event to the {@link InternalLogger} returned by
* {@link #getLogger()}. If hex dump has been enabled for this handler,