Browse Source

添加模板配置文件

pull/118/head
zhangxin 3 years ago
parent
commit
8ded41b297
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      infra/logger/config.yaml

+ 43
- 0
infra/logger/config.yaml View File

@ -0,0 +1,43 @@
# 输出
# db为数据输出
db:
# 此处为map 可以配置输出到不同的数据 不同的表
mongo:
dbtype: mongo
host: 127.0.0.1
port: 27017
database: GAAS_MOM
Table: LOG
# file为输出到文件
file:
# 此处为map 输出到不同的位置
common:
filename: ./log/common.log
MaxSize: 100
MaxAge: 30
MaxBackups: 30
compress: false
level: debug
# console 为输出到控制台
console:
enable: true # bool 是否输出到控制台
# module配置输出源 配置为map
config:
# root为根配置 默认配置 module未配置则使用root配置
# drivertype 为驱动类型 file-文件 db-数据库 console-控制台
# drivername 需要和output的map 键值相同
root:
file:
drivertype: file
level: debug
drivername: common
db:
drivertype: db
level: debug
drivername: mongo
console:
drivertype: console
level: debug
drivername: console

Loading…
Cancel
Save