Added LoggingHandler.getLevel()
This commit is contained in:
parent
a902cbf970
commit
369a363855
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user