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

本文涉及的产品
日志服务 SLS,月写入数据量 50GB 1个月
简介: 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日志并进行多维度分析。
目录
相关文章
|
5月前
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.
52 2
|
2月前
|
JavaScript 前端开发 Python
成功解决:Can‘t find Python executable “python“, you can set the PYTHON env variable.
这篇文章分享了作者在运行前端Vue项目时遇到的关于Python执行环境的问题和解决方法。问题是由于找不到Python可执行文件导致的编译错误,解决方法包括安装编译环境、卸载并重新安装出现问题的`node-sass`包,并重新执行`npm install`和`npm run dev`。
成功解决:Can‘t find Python executable “python“, you can set the PYTHON env variable.
|
2月前
|
运维 监控 安全
系统日志规范问题之日志打印等级的DEBUG的定义如何解决
系统日志规范问题之日志打印等级的DEBUG的定义如何解决
|
3月前
|
监控 前端开发 安全
系统日志使用问题之DEBUG级别的日志主要用于什么阶段
系统日志使用问题之DEBUG级别的日志主要用于什么阶段
|
2月前
|
Java C++
【Azure Function】开启Azure Function输出详细Debug日志 ( --verbose)
【Azure Function】开启Azure Function输出详细Debug日志 ( --verbose)
|
4月前
|
SQL 运维 关系型数据库
|
4月前
|
缓存 Java Maven
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
550 1
|
4月前
|
Java Spring
idea Spring-boot 项目debug启动过慢 spring debug启动过慢解决办法:已解决
idea Spring-boot 项目debug启动过慢 spring debug启动过慢解决办法:已解决
160 3
|
5月前
|
Python
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
155 1
|
5月前
|
数据库 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
46 1