set Spring log level to debug so that we can learn more from log

简介: set Spring log level to debug so that we can learn more from log

When I debug framework, I found there are lots of useful information which is not logged to standard output due to isFineLEvelLoggable != true.


image.png

Check our pom.xml, we are using logback-classic 1.1.7 as logging framework.

image.png

according to this link: http://logback.qos.ch/manual/configuration.html, it is very easy to enable debug log level by chaning logback.xml:

image.png

paste the following content into logback.xml:

image.png

And in the runtime, you can see lots of useful debug information now:

image.png 

相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
目录
相关文章
|
3月前
|
存储 监控 Java
Spring6入门 + Log4j2
Spring6入门 + Log4j2
|
4月前
|
Java Spring
spring boot 配置log4j 日志
spring boot 配置log4j 日志
69 0
|
3月前
|
Java Spring
【Spring Boot】logback和log4j日志异常处理
【1月更文挑战第25天】【Spring Boot】logback和log4j日志异常处理
|
30天前
Transparent Data Encryption Data Dynamic and Data Dictionary Views You can query a set of dynamic and data dictionary views to find more information about Transparent Data Encryption (TDE) data.
Transparent Data Encryption Data Dynamic and Data Dictionary Views You can query a set of dynamic and data dictionary views to find more information about Transparent Data Encryption (TDE) data.
11 2
|
3月前
|
Java Unix 网络安全
Spring Boot整合Log4j做日志处理
Spring Boot整合Log4j做日志处理
41 0
|
4月前
|
数据库 OceanBase
min restore scn of backup set file is greater than restore scn. can't use to restor
min restore scn of backup set file is greater than restore scn. can't use to restor
22 1
|
4月前
|
XML Java Maven
【Log4j2】Spring 整合 Log4j2 日志框架
【Log4j2】Spring 整合 Log4j2 日志框架
38 0
|
4月前
|
SQL 消息中间件 缓存
Flink SQL中使用DEBUG模式来输出详细的日志信息,
Flink SQL中使用DEBUG模式来输出详细的日志信息,
134 0
|
6月前
Can not set final java.lang.Class field org.apache.ibatis.binding.MapperProxy.mapperInterface to com
Can not set final java.lang.Class field org.apache.ibatis.binding.MapperProxy.mapperInterface to com
57 0
|
6月前
|
Java 项目管理 Spring
【log4j异常】Spring boot项目启动报警告信息,log4j:WARN Please initialize the log4j system properly.
【log4j异常】Spring boot项目启动报警告信息,log4j:WARN Please initialize the log4j system properly.
89 0

热门文章

最新文章