当前位置:网站首页>Add log4j log function
Add log4j log function
2022-04-21 08:49:00 【Xiaoba final】
-
Join the rely on
<!-- log4j journal --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> -
Join in log4j Configuration file for
- log4j The configuration file for is named log4j.xml, The storage location is src/main/resources Under the table of contents
- Level of logging :FATAL( deadly )>ERROR( error )>WARN( Warning )>INFO( Information )>DEBUG( debugging ) The content printed from left to right is more and more detailed
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> <param name="Encoding" value="UTF-8" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p %d{MM-dd HH:mm:ss,SSS} %m (%F:%L) \n" /> </layout> </appender> <logger name="java.sql"> <level value="debug" /> </logger> <logger name="org.apache.ibatis"> <level value="info" /> </logger> <root> <level value="debug" /> <appender-ref ref="STDOUT" /> </root> </log4j:configuration>
版权声明
本文为[Xiaoba final]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210834164658.html
边栏推荐
- 2022 t elevator repair test questions and online simulation test
- Ue5 little knowledge point animation blueprint interface cannot copy new in editor
- Zabbix 5.4 Server安装
- 垃圾回收机制
- Explain in simple terms the optimization of ext4 block and inode distributor (Part 2)
- 移除链表元素 <难度系数>
- Notice on organizing the application of the first set of technical equipment and key core parts project in Shandong Province in 2022
- Enter four integers in descending order
- Compile pyx file into PYD file (many pits have been solved)
- Selection of WiFi module for data transmission through industrial control serial port of intelligent gateway of Internet of things
猜你喜欢
What is the product power of the new modern paristi, a joint venture 7-seat SUV with large displacement?

Kotlin project cannot run after IntelliJ update

方格分割【dfs】

7.3 卷积神经网络 NIN
![BUUCTF[HCTF 2018]WarmUp](/img/89/5d7d147dfb8e2bc10a2ff0bb68debe.png)
BUUCTF[HCTF 2018]WarmUp

Power grid enterprise standard B interface access record (I): Registration

【(强推)李宏毅2021/2022春机器学习课程】Unsupervised Learning - Linear Methods

【ARM汇编判断】如何用汇编判断数组中正负数个数?

渗透测试-从公有云到内网漫游RCE-反序列化-frp

Machine learning notes - SVD singular value decomposition (2)
随机推荐
Notice on organizing the application of the first set of technical equipment and key core parts project in Shandong Province in 2022
【ARM汇编判断】如何用汇编判断数组中正负数个数?
Various database connection strings (efcore)
【(强推)李宏毅2021/2022春机器学习课程】Unsupervised Learning - Linear Methods
C#100分秘籍 sduwh
Plan your own health problems
2022 tea artist (primary) examination questions and online simulation examination
【Appium】使用模拟器实现有道云App的业务功能-新增、搜索、修改、删除
BUUCTF[HCTF 2018]WarmUp
规划自己的健康问题
51 single chip microcomputer learning_ 1.1 turn on an LED
最新系统漏洞--OMERO.web跨站脚本漏洞
C 100 points secret script sduwh
Kotlin's extended function knowledge points
Deletion of linked list nodes
2022年流动式起重机司机考试练习题模拟考试平台操作
Analysis of VoIP technology of network telephone
Static insertion and dynamic traversal of linked list
MySQL error of Navicat connection under Linux access denied for user 'root' @ 'xxx XXX. XXX. XXX‘ (USING PASSWORD: YES
sql 一般模糊查询语句,查询表T , 表T2的SEQ是条件,请问模糊查询 如何 能够匹配表T2的SEQ多个字符?