转载

SpringBoot开发案例之日志管理

概述

参考文档: Logging

顺便引用以下原文,当然看不明白也没关系,我们有-有道翻译,如果翻译的不准确,后面会提供配置分享于大家。

Spring Boot uses Commons Logging for all internal logging, but leaves the underlying log implementation open. Default configurations are provided for Java Util Logging, Log4J2 and Logback. In each case loggers are pre-configured to use console output with optional file output also available. By default, If you use the ‘Starters’, Logback will be used for logging. Appropriate Logback routing is also included to ensure that dependent libraries that use Java Util Logging, Commons Logging, Log4J or SLF4J will all work correctly.

简单概述以下spring-boot日志管理默认使用Logback,当然 Log4j2、Log4j也是支持的。

原文  https://blog.52itstyle.com/archives/1348/
正文到此结束
Loading...