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 AliyunLogConfig interface { GetAccessKey() string GetAccessSecret() string GetEndpoint() string GetSecurityToken() string GetExpireTime() string GetProject() string GetStore() string }
AliyunLogConfig 阿里云日志配置
type Logger ¶
Logger 日志
func NewAliYunLog ¶
func NewAliYunLog(c AliyunLogConfig) Logger
NewAliYunLog new an aliyun logger with options.
func NewStdoutLogger ¶
NewStdoutLogger new a stdout logger.
Click to show internal directories.
Click to hide internal directories.