Get the App
SLTechnology News&Howtos  ›  Development  › 

How does springboot use logback files to view error logs

Shulou Source: shulou.com Published: 2022-06-03 09:20:54 11月15日 Update

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!

Tags: Files logs errors content articles values interests guys buddies more knowledge industry information information channels channels UTF-8 references help configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Linux macOS Huawei Redmi