Versions in this module Expand all Collapse all v1 v1.1.0 Apr 6, 2022 v1.0.0 Mar 23, 2022 Changes in this version + const AUTO_CLEAR_HOURS + const LOG_DIR + const NULL_AUTO_CLEAR_HOURS + var ErrLogPrefixNil = errors.New("log Prefix is nil") + var ErrLogTypeIllegal = errors.New("log Type Illegal") + func NewDefaultLogger(lc *LogConfig) (*defaultLogger, error) + func NewSingleLogger(lc *LogConfig) error + type LogConfig struct + AutoClearHours int + Depth int + Dir string + Format LogFormat + LogLevel LogLevel + LogMaxByteNum int64 + LogTyp string + Prefix string + type LogFormat string + const FORMAT_JSON + const FORMAT_NORMAL + type LogLevel int32 + const DEBUG + const ERROR + const FATAL + const INFO + const TRACE + const WARNING + type Logger interface + Debug func(msg string) + Debugf func(f string, args ...interface{}) + DebugfCtx func(ctx context.Context, f string, args ...interface{}) + Error func(msg string) + Errorf func(f string, args ...interface{}) + ErrorfCtx func(ctx context.Context, f string, args ...interface{}) + Info func(msg string) + Infof func(f string, args ...interface{}) + InfofCtx func(ctx context.Context, f string, args ...interface{}) + Printf func(f string, args ...interface{}) + Warn func(msg string) + Warnf func(f string, args ...interface{}) + WarnfCtx func(ctx context.Context, f string, args ...interface{}) + var Elog Logger + func NewLogger(lc *LogConfig) (Logger, error)