Documentation
¶
Index ¶
- func Debug(format string)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Fatalf(format string, args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func Init(opts ...Option) error
- func NewLogger(logger *log.Logger)
- func Tracef(format string, args ...any)
- func Warnf(format string, args ...any)
- type ConfigOption
- type Option
- type RotatingFileWriter
- type ServiceProviderLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.0.2
type Option func(*ConfigOption)
Option 使用函数定义一个配置选项类型
func WithFileOut ¶ added in v0.0.2
func WithRotatingFileWriter ¶ added in v0.0.2
type RotatingFileWriter ¶ added in v0.0.2
type RotatingFileWriter struct {
// contains filtered or unexported fields
}
RotatingFileWriter 管理日志滚动的结构体
func NewRotatingFileWriter ¶ added in v0.0.2
func NewRotatingFileWriter(filePath, fileName string) *RotatingFileWriter
NewRotatingFileWriter 创建一个新的 RotatingFileWriter 实例
type ServiceProviderLogger ¶
Click to show internal directories.
Click to hide internal directories.