当前位置:网站首页>Fixedwindowrollingpolicy introduction
Fixedwindowrollingpolicy introduction
2022-07-28 09:59:00 【qq_ twenty-five million seventy-three thousand two hundred and 】
from :
FixedWindowRollingPolicy Introduction
The following is about FixedWindowRollingPolicy Introduction to , As shown below :
FixedWindowRollingPolicy The function of : According to the fixed window algorithm rename the file rolling strategy . FixedWindowRollingPolicy attribute
minIndex: Minimum window index
maxIndex: Maximum window index , When the window specified by the user is too large , Will automatically set the window to 20
fileNamePattern: Must contain “%i” for example , Suppose that the minimum and maximum values are respectively 1 and 2
The naming pattern is myjava265log%i.log, There will be an archive myjava265log1.log and myjava265log2.log
You can also specify file compression options , Such as :myjava265log%i.log.gz Or not myjava265log%i.log.zip
example
<!-- Set to scroll by index , When defining the file name, use %i As placeholder , After scrolling, it will be replaced with a corner mark -->
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>/logback/log/test-%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>3</maxIndex>
</rollingPolicy>
<!-- Specify the maximum file size , Reach this size , It triggers rollingPolicy The corresponding strategy ,maxFileSize Property specifies the file size -->
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>1MB</maxFileSize>
</triggeringPolicy>
minIndex: Minimum window index maxIndex: Maximum window index , When the window specified by the user is too large , Will automatically set the window to 20. fileNamePattern: Must contain “%i” for example , Suppose that the minimum and maximum values are respectively 1 and 2 The naming pattern is myjava265log%i.log, There will be an archive myjava265log1.log and myjava265log2.log You can also specify file compression options , Such as ,myjava265log%i.log.gz Or not log%i.log.zip
边栏推荐
猜你喜欢

数据不会说谎,Plato Farm就是元宇宙龙头

Real time editor of MATLAB

Seektiger eco pass STI new progress, log in to ZB on April 14

Data can't lie. Plato farm is the leader of the meta universe

pycharm使用conda调用远程服务器

Machine learning (10) -- hypothesis testing and regression analysis

OSS直连上传-Rails服务实践

初学C#必须要掌握的基础例题

C countdown tool

In hot weather, the line of defense for safe production was strengthened, and Guangzhou Haizhu District carried out emergency drills for gas stations
随机推荐
7.27 最小生成树阶段性测试题解
Several innovative economic models of platofarm have inspired the current metacosmic market
With such a simple verification, 80% of programmers can't do it, let alone understand it!
CTF中常见的RSA相关问题总结:基础RSA加密与解密
数据库高级技术学习笔记1--Oracle部署和PL/SQL综述
能够遍历一个文件夹下的所有文件和子文件夹
哪些字符串会被FastJson解析为null呢?
SD卡介绍(基于SPEC3.0)
软件测试与质量学习笔记2----黑盒测试
j s的数组方法,循环
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器
SQL Server、MySQL主从搭建,EF Core读写分离代码实现
居家健康诊断时代下,Senzo打造增强侧向流测试产品
使用IdentityServer出现过SameSite Cookie这个问题吗?
MATLAB启动慢解决措施
【Gradle】This version of the JMH Gradle plugin requires Gradle 6+, you are using 6.6.
Mobile number, fixed line regular expression
DAO社区的胜利,Tiger DAO VC胜在治理与共识
SizeBasedTriggeringPolicy简介说明
极致通缩和永动机模型,将推动 PlatoFarm 爆发