axzo-framework/axzo-logger-spring-boot-starter/README.md
2022-09-09 14:36:43 +08:00

34 lines
856 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# axzo-logger-spring-boot-starter
日志支持库.
更多细节用法请参考:
- [Spring Boot Logging](https://docs.spring.io/spring-boot/docs/2.4.13/reference/html/spring-boot-features.html#boot-features-logging)
## Quickstart
### 1、引入依赖
``` xml
<!-- Logger依赖 -->
<dependency>
<groupId>cn.axzo.framework</groupId>
<artifactId>axzo-logger-spring-boot-starter</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
```
### 2、日志配置logback-spring.xml
``` xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<configuration>
<!-- 导入安心筑全局日志配置 -->
<include resource="logback/logback-axzo.xml" />
<!-- 覆盖开发环境日志配置 -->
<springProfile name="local,dev">
<logger name="cn.axzo" level="DEBUG" />
</springProfile>
</configuration>
```