Documentation ¶
Index ¶
- Variables
- type Entry
- type Helper
- func (h *Helper) Debug(v ...interface{})
- func (h *Helper) Debugf(format string, v ...interface{})
- func (h *Helper) Error(v ...interface{})
- func (h *Helper) Errorf(format string, v ...interface{})
- func (h *Helper) Info(v ...interface{})
- func (h *Helper) Infof(format string, v ...interface{})
- func (h *Helper) Log(level Level, v ...interface{}) error
- func (h *Helper) Warn(v ...interface{})
- func (h *Helper) Warnf(format string, v ...interface{})
- func (h *Helper) WithTraceId(traceId string) *Entry
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultLogger = NewStdLogger(log.Writer())
)
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is logger entry
func (*Entry) WithTraceId ¶
WithTraceId set trace id
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper is a helper logger
func (*Helper) WithTraceId ¶
Click to show internal directories.
Click to hide internal directories.