feat: 添加日志打印器.

This commit is contained in:
lijiahang
2023-06-29 13:48:11 +08:00
parent c4cf34330b
commit c0d3b26c76
15 changed files with 668 additions and 165 deletions

View File

@@ -108,6 +108,19 @@ logging:
pattern:
console: '%clr(%d{${LOG_DATEFORMAT_PATTERN:yyyy-MM-dd HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %boldBlue([%X{tid}]) %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}'
file: "%d{${LOG_DATEFORMAT_PATTERN:yyyy-MM-dd HH:mm:ss.SSS}} ${LOG_LEVEL_PATTERN:-%5p} [%X{tid}] [%t] %-40.40logger{39} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
printer:
mode: PRETTY
expression: 'execution (* com.orion.ops.**.controller.*.*(..)) && !@annotation(com.orion.ops.framework.common.annotation.IgnoreLog)'
headers:
- user-agent,accept
- content-type
field:
ignore:
- password,newPassword
- metrics
desensitization:
- phone,phoneNumber
- email,sendEmail
orion:
# 版本
@@ -118,7 +131,6 @@ orion:
prefix: /orion-api
# 是否开启跨域
cors: true
# 文档配置
swagger:
title: orion-ops-pro 运维平台
description: 一站式提供运维功能