Documentation ¶
Overview ¶
log包实现了基于logrus的日志管理器
Index ¶
Constants ¶
View Source
const ( DefaultLogPath = "/wwwlogs/" SystemLogPrefix = "system_" RequestLogPrefix = "request_" AppLogPrefix = "app_" MqLogPrefix = "mq_" LogSuffix = ".log" AppLogComponentName = "app" TraceLogComponentName = "trace" MqLogComponentName = "mq" SystemLogComponentName = "phplogs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Info(message string, context Context) Debug(message string, context Context) Warn(message string, context Context) Error(message string, context Context) Fatal(message string, context Context) SetExtends(extends Context) }
Logger 日志接口
type Manager ¶
type Manager interface { App() Logger Request() Logger System() Logger Mq() Logger // contains filtered or unexported methods }
Manager 接口
type ManagerConf ¶
ManagerConf 日志配置
Click to show internal directories.
Click to hide internal directories.