Versions in this module Expand all Collapse all v1 v1.0.2 May 19, 2022 Changes in this version + const Blue + const BlueBold + const Cyan + const Green + const Magenta + const MagentaBold + const Red + const RedBold + const Reset + const White + const Yellow + const YellowBold + func Close() + func ColorForMethod(method string) string + func ColorForStatus(code int) string + func Debug(format string, args ...interface{}) + func Error(format string, args ...interface{}) + func Fatal(format string, args ...interface{}) + func Info(format string, args ...interface{}) + func InitLog(logCfgS ...*LogCfg) (err error) + func NewFileLogger(logCfg *LogCfg) (*fileLogger, error) + func Panic(format string, args ...interface{}) + func Warn(format string, args ...interface{}) + type ConsoleLogger struct + Level string + func NewConsoleLogger(Level string) *ConsoleLogger + func (f *ConsoleLogger) Close() + func (f *ConsoleLogger) Debug(format string, args ...interface{}) + func (f *ConsoleLogger) Error(format string, args ...interface{}) + func (f *ConsoleLogger) Fatal(format string, args ...interface{}) + func (f *ConsoleLogger) Info(format string, args ...interface{}) + func (f *ConsoleLogger) Print(args ...interface{}) + func (f *ConsoleLogger) Warn(format string, args ...interface{}) + type LogCfg struct + FileName string + FilePath string + Level string + MaxSize int64 + SplitFlag bool + TimeDr float64 + type Logger interface + Close func() + Debug func(format string, args ...interface{}) + Error func(format string, args ...interface{}) + Fatal func(format string, args ...interface{}) + Info func(format string, args ...interface{}) + Panic func(format string, args ...interface{}) + Print func(args ...interface{}) + Warn func(format string, args ...interface{}) + var Log Logger