<AsyncRoot level="info" includeLocation="true">
<AppenderRef ref="File"/>
</AsyncRoot>
<!--
1.异步logger,还需要在pom.xml中添加disruptor的依赖。
2.includeLocation结合异步logger使用,当其设置为true时,才会显示具体的行号,以及日志所在的类名;
3.如果设置为false,哪怕<Pattern>设置了输出行号也不会显示出来;
-->
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>${lmax.disruptor.version}</version>
</dependency>
转载于:https://my.oschina.net/yifanxiang/blog/1855562