How does springboot use logback files to view error logs
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!