@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>
| Constructor and Description |
|---|
AccessLogFilter() |
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
Filter
// before filter
Result result = invoker.invoke(invocation);
// after filter
return result;
invoke in interface Filterinvoker - serviceinv - invocation.RpcExceptionInvoker.invoke(Invocation)Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.