log/config.go

27 lines
524 B
Go
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.

package log
// Config 日志配置
type Config struct {
Name string
Level string
File string
Fast bool
SplitTag string
Truncations string
Sensitive string
RegexSensitive string
SensitiveRule string
KeepKeyCase bool // 是否保持Key的首字母大小写默认一律使用小写
Formatter Formatter
}
type LevelType int
const (
DEBUG LevelType = 1
INFO LevelType = 2
WARNING LevelType = 3
ERROR LevelType = 4
CLOSE LevelType = 5
)