类 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>
     
    • 构造器详细资料

      • AccessLogFilter

        public 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 - service
        inv - Invocation service method.
        返回:
        Result from service method.
        抛出:
        RpcException