增加日志一些变量的枚举值
This commit is contained in:
parent
92f8bcd8ed
commit
2598eb986e
19
logger.go
19
logger.go
@ -25,3 +25,22 @@ const (
|
|||||||
const (
|
const (
|
||||||
LogPathDefault = "logs"
|
LogPathDefault = "logs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
LogMessageKey = "message"
|
||||||
|
LogLevelKey = "level"
|
||||||
|
LogTimeKey = "time"
|
||||||
|
LogCallerKey = "caller"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
LogAccessName = "access.log"
|
||||||
|
LogRequestName = "request.log"
|
||||||
|
LogProxyName = "proxy.log"
|
||||||
|
LogBusinessName = "business.log"
|
||||||
|
LogMonitorName = "monitor.log"
|
||||||
|
LogDatabaseName = "database.log"
|
||||||
|
LogRateLimitName = "rate-limit.log"
|
||||||
|
LogEventName = "event.log"
|
||||||
|
LogCacheName = "cache.log"
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user