当前位置:网站首页>What is the function of fileappender in logback?
What is the function of fileappender in logback?
2022-07-29 07:24:00 【qq_ twenty-five million seventy-three thousand two hundred and 】
from :
logback in FileAppender What function does it have ?
The following is about FileAppender Function introduction and description of , As shown below :
logback in FileAppender The function of : Used to add logs to files FileAppender Attribute specification
<file>: Set the file name written , It can be a relative Directory , It can also be an absolute catalog , If the parent directory does not exist, it will be created automatically , No default <append>: When set to true, The log is appended to the end of the file , When set to false, Then empty the existing file , The default is true <encoder>: Format the recorded events ( The specific parameters will be explained later ) <prudent>: When set to true, The log will be safely written to the file , Even if the others FileAppender Also writing to this file , Low efficiency , The default is false.
example
// hold >=DEBUG Level logs are output to testFile.log
<configuration>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>javatestlog.log</file>
<append>true</append>
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<root level="DEBUG">
<appender-ref ref="FILE" />
</root>
</configuration>边栏推荐
- Thinkphp6 realizes database backup
- 一篇长文---深入理解synchronized
- CDC source can quit after reading MySQL snapshot split
- Interface test actual project 03: execute test cases
- 【Unity实战100例】Unity万能答题系统之单选多选判断题全部通用
- thinkphp6 实现数据库备份
- 5-integrate swagger2
- Vite3.0 has been released, can you still roll it (list of new features)
- NPM install reports an error NPM err could not resolve dependency NPM err peer
- WPF嵌套布局案例
猜你喜欢

以太网接口介绍

Practice of online problem feedback module (XVII): realize the online download function of excel template

WPF interface layout must know basis

2-unified return class dto object
Scala higher order (IX): pattern matching in Scala

thinkphp6 实现数据库备份

JS day 4 process control (if statement and switch statement)
![[OpenGL] use of shaders](/img/73/1322afec8add6462ca4b82cb8112d1.png)
[OpenGL] use of shaders

亚马逊云助手小程序来啦!

3-全局异常处理
随机推荐
Does Flink support sqlserver databases? Get the changes of SQLSERVER database
Scala 高阶(九):Scala中的模式匹配
CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)
CAN&CANFD综合测试分析软件LKMaster与PCAN-Explorer 6分析软件的优势对比
Redis基础篇
我想问一下,我flink作业是以upsert-kafka的方式写入数据的,但是我在mysql里面去更
CMOS芯片制造全工艺流程
JS break and continue and return keywords
论文阅读 (62):Pointer Networks
cdc source能读完MySqlSnapshotSplit 就退出嘛
H3C_ Using setting default static routing priority to realize the active and standby function of export dual lines
一篇长文---深入理解synchronized
Life cycle hooks in routing - activated and deactivated
logback filter过滤器简介说明
npm install 时,卡住不动,五种解决方法
请问flink支持sqlServer数据库么?获取sqlServer数据库的变化
How to use GS_ Expansion expansion node
Can I specify memory parameters in SQL statements?
1 - background project construction
SpingBoot整合Quartz框架实现动态定时任务(支持实时增删改查任务)