类 AccessLogFilter
- java.lang.Object
-
- org.apache.dubbo.rpc.filter.AccessLogFilter
-
- 所有已实现的接口:
BaseFilter
,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>
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.apache.dubbo.rpc.BaseFilter
BaseFilter.Listener
-
-
构造器概要
构造器 构造器 说明 AccessLogFilter()
Default constructor initialize demon thread for writing into access log file with names with access log key defined in url accesslog
-
-
-
方法详细资料
-
invoke
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
This method logs the access log for service method invocation call.- 指定者:
invoke
在接口中BaseFilter
- 参数:
invoker
- serviceinv
- Invocation service method.- 返回:
- Result from service method.
- 抛出:
RpcException
-
-