Documentation
¶
Index ¶
- func Debug(ctx context.Context, msg string)
- func DebugWithFields(ctx context.Context, fields logrus.Fields, msg string)
- func Debugf(ctx context.Context, format string, args ...interface{})
- func DebugfWithFields(ctx context.Context, fields logrus.Fields, msg string, args ...interface{})
- func Error(ctx context.Context, msg string)
- func ErrorWithFields(ctx context.Context, fields logrus.Fields, msg string)
- func Errorf(ctx context.Context, format string, args ...interface{})
- func ErrorfWithFields(ctx context.Context, fields logrus.Fields, msg string, args ...interface{})
- func GetLogLevel(level string) int32
- func Info(ctx context.Context, msg string)
- func InfoWithFields(ctx context.Context, fields logrus.Fields, msg string)
- func Infof(ctx context.Context, format string, args ...interface{})
- func InfofWithFields(ctx context.Context, fields logrus.Fields, msg string, args ...interface{})
- func InitLogger(ctx context.Context)
- func Warn(ctx context.Context, msg string)
- func WarnWithFields(ctx context.Context, fields logrus.Fields, msg string)
- func Warnf(ctx context.Context, format string, args ...interface{})
- func WarnfWithFields(ctx context.Context, fields logrus.Fields, msg string, args ...interface{})
- type DailySizeRotator
- type FileHook
- type OrderedJSONFormatter
- type SimpleTextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugfWithFields ¶
func ErrorfWithFields ¶
func GetLogLevel ¶
func InfofWithFields ¶
Types ¶
type DailySizeRotator ¶
type DailySizeRotator struct {
// contains filtered or unexported fields
}
DailySizeRotator 结合每日切换和大小切割的日志轮转器
func NewDailySizeRotator ¶
func NewDailySizeRotator(config config.LoggerConfig) (*DailySizeRotator, error)
NewDailySizeRotator 创建轮转器实例
type FileHook ¶
type FileHook struct {
// contains filtered or unexported fields
}
FileHook 文件输出Hook
type OrderedJSONFormatter ¶
OrderedJSONFormatter 自定义JSON格式化器
Click to show internal directories.
Click to hide internal directories.