当前位置:网站首页>Sizebasedtriggingpolicy introduction
Sizebasedtriggingpolicy introduction
2022-07-28 09:58:00 【qq_ twenty-five million seventy-three thousand two hundred and 】
from :
SizeBasedTriggeringPolicy Introduction
The author will talk about it below SizeBasedTriggeringPolicy Introduction to , As shown below
SizeBasedTriggeringPolicy The function of : Observe the size of the currently active file When it is greater than the specified value , It will give RollingFileAppender Send a signal to trigger the rotation of the currently active file SizeBasedTriggeringPolicy attribute
maxFileSize: byte
kilobytes
Megabytes
gigabyte
By specifying a suffix after the value KB,MB perhaps GB
Such as :5000000,5000KB,5MB as well as 2GB It's all valid , The first three are the same ( The default value is 10 MB)
example
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>test.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>test.%i.log.zip</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>3</maxIndex>
</rollingPolicy>
<!-- When the file size exceeds 5MB when , notice RollingPolicy rotary -->
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>5MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n
</pattern>
</encoder>
</appender>边栏推荐
猜你喜欢

Leetcode - hashtable topic

Plato farm - a farm meta universe game with Plato as the goal

OSS direct upload rails service practice

居家健康诊断时代下,Senzo打造增强侧向流测试产品

How to get more marks in the game under the new economic model of Plato farm

This wechat plug-in is very easy to use

WPF布局之控件随着窗口等比放大缩小,适应多分辨率满屏填充应用

Seeing clearly is more important than walking fast, because you can go far only when you walk right

一文读懂Plato Farm的ePLATO,以及其高溢价缘由

Use xposed to crack the software
随机推荐
DAO社区的胜利,Tiger DAO VC胜在治理与共识
TCP 基础知识
Analysis of the internal principle of ArrayList
MySQL 为什么有时候会选错索引?
Buckle 376 swing sequence greedy
Source code analysis of activityrouter
Experiment 5: user and user group management
居家健康诊断时代下,Senzo打造增强侧向流测试产品
【MySQL】查询多个ID返回字符串拼接
PHP connection MySQL native code
C form application uses object binding DataGridView data binding
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器
Time series analysis 41 - time series prediction tbats model
判断字符串是不是回文
设计一个支持百万用户的系统
Word segmentation results of ES query index fields
PlatoFarm几大创新经济模型,给予当下元宇宙市场的启发
NTU Lin Xuantian's "machine learning cornerstone" problem solving and code implementation | [you deserve it]
7.27 minimum spanning tree phased test problem solution
JWT 登录认证 + Token 自动续期方案,写得太好了!