Documentation ¶
Index ¶
- func Env() log.Valuer
- func ID() log.Valuer
- func Name() log.Valuer
- func NewHelper(logger Logger, module, domain string) *log.Helper
- func RecoveryHandle(_ context.Context, req, err interface{}) error
- func Version() log.Valuer
- type AliyunLogConfig
- type Logger
- type LokiConfig
- type SLogConfig
- type ZapLogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoveryHandle ¶
RecoveryHandle 错误处理
Types ¶
type AliyunLogConfig ¶
type Logger ¶
func NewAliYunLog ¶
func NewAliYunLog(c AliyunLogConfig) Logger
NewAliYunLog new an aliyun logger with options.
func NewStdoutLogger ¶
NewStdoutLogger new a stdout logger.
type LokiConfig ¶
type LokiConfig interface {
GetUrl() string
}
type SLogConfig ¶
type SLogConfig interface {
GetJson() bool
}
type ZapLogConfig ¶
type ZapLogConfig interface {
GetJson() bool
}
Click to show internal directories.
Click to hide internal directories.