@Activate(group="provider") 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>
BaseFilter.Listener| 限定符和类型 | 字段和说明 |
|---|---|
static ErrorTypeAwareLogger |
logger |
| 构造器和说明 |
|---|
AccessLogFilter()
Default constructor initialize demon thread for writing into access log file with names with access log key
defined in url accesslog
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
static long |
getInterval() |
Result |
invoke(Invoker<?> invoker,
Invocation inv)
This method logs the access log for service method invocation call.
|
static void |
setInterval(long interval) |
public static ErrorTypeAwareLogger logger
public AccessLogFilter()
public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
invoke 在接口中 BaseFilterinvoker - serviceinv - Invocation service method.RpcExceptionpublic static void setInterval(long interval)
public static long getInterval()
public void destroy()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.