@Activate(group="provider", value="accesslog") public class AccessLogFilter extends Object implements Filter
Logger key is dubbo.accesslog.
In order to configure access log appear in the specified appender only, additivity need to be configured in log4j's
config file, for example:
<logger name="dubbo.accesslog" additivity="false">
<level value="info" />
<appender-ref ref="foo" />
</logger>
Filter.Listener| Constructor and Description |
|---|
AccessLogFilter()
Default constructor initialize demon thread for writing into access log file with names with access log key
defined in url accesslog
|
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation inv)
This method logs the access log for service method invocation call.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonResponsepublic AccessLogFilter()
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
invoke in interface Filterinvoker - serviceinv - Invocation service method.RpcExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.