类 AccessLogFilter
- java.lang.Object
-
- com.alibaba.dubbo.rpc.filter.AccessLogFilter
-
- 所有已实现的接口:
Filter
@Activate(group="provider", value="accesslog") public class AccessLogFilter extends Object implements Filter
Record access log for the service.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>
-
-
方法详细资料
-
invoke
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
从接口复制的说明:Filter
do invoke filter.// before filter Result result = invoker.invoke(invocation); // after filter return result;
- 指定者:
invoke
在接口中Filter
- 参数:
invoker
- serviceinv
- invocation.- 返回:
- invoke result.
- 抛出:
RpcException
- 另请参阅:
Invoker.invoke(Invocation)
-
-