Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2022 v1.0.1 Dec 1, 2021 Changes in this version + const CommFieldCall + const CommFieldLogId + const CommFieldPid + const CommFieldSubMod + const DefaultCallDepth + func InitLog(cfgFile, logDir string) + type LogDriver interface + Debug func(msg string, ctx ...interface{}) + Error func(msg string, ctx ...interface{}) + Info func(msg string, ctx ...interface{}) + Trace func(msg string, ctx ...interface{}) + Warn func(msg string, ctx ...interface{}) + func OpenLog(lc *lconf.LogConf, logDir string) (LogDriver, error) + type LogFitter struct + func NewLogger(logId, subMod string) (*LogFitter, error) + func (t *LogFitter) Debug(msg string, ctx ...interface{}) + func (t *LogFitter) Error(msg string, ctx ...interface{}) + func (t *LogFitter) GetLogId() string + func (t *LogFitter) Info(msg string, ctx ...interface{}) + func (t *LogFitter) SetCommField(key string, value interface{}) + func (t *LogFitter) SetInfoField(key string, value interface{}) + func (t *LogFitter) Trace(msg string, ctx ...interface{}) + func (t *LogFitter) Warn(msg string, ctx ...interface{}) + type Logger interface + Debug func(msg string, ctx ...interface{}) + Error func(msg string, ctx ...interface{}) + GetLogId func() string + Info func(msg string, ctx ...interface{}) + SetCommField func(key string, value interface{}) + SetInfoField func(key string, value interface{}) + Trace func(msg string, ctx ...interface{}) + Warn func(msg string, ctx ...interface{}) + type Lvl int + const LvlCrit + const LvlDebug + const LvlError + const LvlInfo + const LvlTrace + const LvlWarn + func LvlFromString(lvlString string) Lvl