一、官方文档位置导航
spring文档首页--> https://spring.io/projects/spring-boot




二、用chrome翻译网页
三、常用配置项
| 春季环境 | 系统属性 | 评论 |
|---|---|---|
|
| The conversion word used when logging exceptions. |
|
| 如果定义,则在默认日志配置中使用。 |
|
| 如果定义,则在默认日志配置中使用。 |
|
| 要在控制台 (stdout) 上使用的日志模式。 |
|
| 日志日期格式的 Appender 模式。 |
|
| The charset to use for console logging. |
|
| 要在文件中使用的日志模式(如果 |
|
| 用于文件记录的字符集(如果 |
|
| 呈现日志级别时使用的格式(默认 |
|
| 当前进程 ID(如果可能并且尚未定义为操作系统环境变量时发现)。 |
四、我的配置示例
src\main\resources\application.yml
# 日志配置
logging:
level:
root: debug
org.springframework: trace
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n"