当前位置:网站首页>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>
边栏推荐
- Section 7 - compilation of programs (preprocessing operations) + links
- Leetcode 209. subarray with the smallest length (2022.07.28)
- 2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f
- 在线问题反馈模块实战(十七):实现excel模板在线下载功能
- gin 服务退出
- Meta configuration item of route
- A long article --- in-depth understanding of synchronized
- 接口测试实战项目03:执行测试用例
- My personal website doesn't allow access to wechat, so I did this
- 彻底搞懂kubernetes调度框架与插件
猜你喜欢
2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f
Scala 高阶(十):Scala中的异常处理
After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
MySQL uses the client and select methods to view the summary of blob type fields
Personal blog system (with source code)
[OpenGL] use of shaders
【OpenGL】着色器(Shader)的使用
MySQL advanced (Advanced) SQL statement (I)
3-global exception handling
JS chicken laying eggs and egg laying chickens. Who appeared earlier, object or function? Is function an instance of function?
随机推荐
Gin routing, parameters, output
使用VsCode配置MySQL实现连接、查询、等功能
2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f
gin 服务退出
JS day 4 process control (if statement and switch statement)
Gin service exit
Leetcode 209. subarray with the smallest length (2022.07.28)
2-unified return class dto object
I'd like to ask, my flick job writes data in the way of upsert Kafka, but I'm more careful in MySQL
vagrant box 集群 处理
我的个人网站不让接入微信登录,于是我做了这个
同步/异步、阻塞/非阻塞 与 IO
20-40k | mecarmand 3D vision algorithm / software / Product Manager Recruitment
How much data can a single MySQL table store at most?
7-2 计算正五边形的面积和周长 (25分)
npm install报错npm ERR Could not resolve dependency npm ERR peer
thinkphp6 实现数据库备份
QT基础第二天(2)qt基础部件:按钮类,布局类,输出类,输入类,容器等个别举例
Leetcode 879. profit plan
计算程序运行时间 demo