Documentation
¶
Index ¶
- func NewConsoleLogger() xlog.XLogger
- func NewLogrusLogger(path string, opts ...func(*types.Option)) xlog.XLogger
- func RestyWrapper(l xlog.XLogger) resty.Logger
- func WithFormat(format xlog.LogFormat) func(*types.Option)
- func WithLevel(level xlog.Level) func(*types.Option)
- func WithLevelString(levelText string) func(*types.Option)
- func WithStack(stack xlog.Stack) func(*types.Option)
- func WithStdPrint(enabled bool) func(*types.Option)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogrusLogger ¶
NewLogrusLogger 文件日志器。使用 logrus 实现,支持日志文件自动分割
func WithLevelString ¶
WithLevelString 通过日志等级字符串设置 支持日志等级: panic, fatal, error, warn, info, debug, trace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.