Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does springboot use logback files to view error logs

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces springboot how to use logback files to view the error log, the article is very detailed, has a certain reference value, interested friends must read it!

% d {yyyy-MM-dd HH:mm:ss} [% thread]%-5level -% caller {1} -% msg%n UTF-8 DEBUG ${log_dir} /% d {yyyy-MM-dd} / logback_vegetable-shop-api_info-log-%d {yyyy-MM-dd}.% i.log 10MB 36020GB % d {yyyy-MM-dd HH:mm:ss.SSS} [% thread]%-5level-%caller {1} -% msg%n GBK ERROR ACCEPT DENY% d {yyyy-MM-dd HH:mm:ss.SSS} [% thread]%-5level-%caller {1} -% msg%n GBK ${log_dir } /% d {yyyy-MM-dd} / vegetable-shop-api_error-log-%d {yyyy-MM-dd}.% i.log 10MB 360 20GB

This logback description is not complete.

The files that are configured in the yml file are:

# logbacklog: path: level: INFO

The above is all the contents of the article "how to use logback files to view error logs in springboot". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report