Versions in this module Expand all Collapse all v0 v0.0.8 Jul 20, 2023 v0.0.7 Jan 9, 2023 Changes in this version + func AddFixedField(key string, value interface{}) + func Debug(format string, v ...interface{}) + func Error(format string, v ...interface{}) + func Fatal(format string, v ...interface{}) + func Info(format string, v ...interface{}) + func SetAppName(appName string) + func SetConsoleLevel(logLevel string) + func SetFileLevel(logLevel string) + func SetFixedFields(fields logrus.Fields) + func SetLogFileDir(dir string) error + func SetLogRotationMaxFileCount(fileCount uint) + func SetLogRotationTime(duration time.Duration) + func Warning(format string, v ...interface{}) + type ChinaClock struct + func (t ChinaClock) Now() time.Time + type Formatter struct + FieldsOrder []string + HideKeys bool + NoColors bool + NoFieldsColors bool + ShowFullLevel bool + TimestampFormat string + TrimMessages bool + func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error) + type LogConfig struct + AppName string + ConsoleLogLevel string + FileLogLevel string + IsSaveToFile bool + LogDir string + MaxRotationRemainCount uint + RotationIntervalTime time.Duration