Documentation ¶
Index ¶
Constants ¶
View Source
const ( CtxLogKey = util.CtxKey("ctxLogKey") LogTargetOS = "os" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Info(msg string) Debug(msg string) Warn(msg string) Err(msg string) Fatal(msg string) }
func GetLogByCtx ¶ added in v1.0.0
func GetLogByReq ¶ added in v1.0.0
type LoggerConf ¶
func (*LoggerConf) NewLogger ¶
func (lc *LoggerConf) NewLogger(key string) Logger
Click to show internal directories.
Click to hide internal directories.