Versions in this module Expand all Collapse all v4 v4.6.0 Dec 20, 2024 Changes in this version + const CsiRequestID + const TagName + const TagNameKey + func Close() + func Debugf(format string, args ...interface{}) + func Debugln(args ...interface{}) + func EnsureGRPCContext(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error) + func Errorf(format string, args ...interface{}) + func Errorln(args ...interface{}) + func Fatalf(format string, args ...interface{}) + func Fatalln(args ...interface{}) + func FilteredLog(ctx context.Context, isSkip, isDebug bool, msg string) + func Flush() + func Infof(format string, args ...interface{}) + func Infoln(args ...interface{}) + func InitLogging(req *Config) error + func MockInitLogging(logName string) + func MockStopLogging(logName string) + func SetRequestInfo(ctx context.Context) (context.Context, error) + func SetRequestInfoWithTag(ctx context.Context, tag string) (context.Context, error) + func Warningf(format string, args ...interface{}) + func Warningln(args ...interface{}) + type Config struct + LogFileDir string + LogFileSize string + LogLevel string + LogName string + LoggingModule string + MaxBackups uint + type ConsoleHook struct + func (hook *ConsoleHook) Fire(entry *logrus.Entry) error + func (hook *ConsoleHook) Levels() []logrus.Level + type FileHook struct + func (hook *FileHook) Fire(entry *logrus.Entry) error + func (hook *FileHook) Levels() []logrus.Level + type Logger interface + Debugf func(format string, args ...interface{}) + Debugln func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Errorln func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Fatalln func(args ...interface{}) + Infof func(format string, args ...interface{}) + Infoln func(args ...interface{}) + Warningf func(format string, args ...interface{}) + Warningln func(args ...interface{}) + func AddContext(ctx context.Context) Logger + type LoggingInterface interface + AddContext func(ctx context.Context) Logger + type PlainTextFormatter struct + TimestampFormat string + func (f *PlainTextFormatter) Format(entry *logrus.Entry) ([]byte, error)