GAAS GFrame项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
975 B

# 输出
# 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