@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| 构造器和说明 |
|---|
AccessLogFilter()
Default constructor initialize demon thread for writing into access log file with names with access log key
defined in url accesslog
|
public AccessLogFilter()
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
invoke 在接口中 Filterinvoker - serviceinv - Invocation service method.RpcExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.