1 Star 0 Fork 1

天再确啊/http-server-benchmark

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
logback.xml 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
dwing 提交于 2021-05-06 12:10 . add IDEA project instead of eclipse project
<?xml version="1.0" encoding="UTF-8"?>
<!-- put this file in java classpath and ensure the filename: logback.xml -->
<configuration debug="false">
<property name="log_path" value="${log.path:-log}"/>
<property name="log_name" value="${log.name:-benchmark}"/>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>TRACE</level>
</filter>
<file>${log_path}/${log_name}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log_path}/${log_name}.%d{yy-MM-dd}.log</fileNamePattern>
<maxHistory>500</maxHistory>
</rollingPolicy>
<encoder>
<charset>UTF-8</charset>
<pattern>%d{yy-MM-dd HH:mm:ss.SSS} %-5level [%t] %msg%n</pattern>
</encoder>
<immediateFlush>false</immediateFlush>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>TRACE</level>
</filter>
<encoder>
<pattern>%d{yy-MM-dd HH:mm:ss.SSS} %-5level [%t] %msg%n</pattern>
</encoder>
<immediateFlush>false</immediateFlush>
</appender>
<appender name="ASYNC_FILE" class="ch.qos.logback.classic.AsyncAppender">
<queueSize>65536</queueSize>
<discardingThreshold>0</discardingThreshold>
<appender-ref ref="FILE"/>
</appender>
<appender name="ASYNC_STDOUT" class="ch.qos.logback.classic.AsyncAppender">
<queueSize>65536</queueSize>
<discardingThreshold>0</discardingThreshold>
<appender-ref ref="STDOUT"/>
</appender>
<!--logger name="org.apache" level="INFO"/-->
<root level="INFO"><!-- level: ALL <= TRACE < DEBUG < INFO < WARN < ERROR < OFF -->
<appender-ref ref="ASYNC_FILE"/>
<appender-ref ref="ASYNC_STDOUT"/>
</root>
</configuration>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/MTV168168/http-server-benchmark.git
git@gitee.com:MTV168168/http-server-benchmark.git
MTV168168
http-server-benchmark
http-server-benchmark
master

搜索帮助