Documentation
¶
Index ¶
- type CtxRequestIDKeyType
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) SetOutput(out io.Writer)
- func (l *Logger) Trace(msg string)
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) WithFields(m map[string]interface{}) *Logger
- func (l *Logger) WithPrefix(prefix string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtxRequestIDKeyType ¶
type CtxRequestIDKeyType int
CtxRequestIDKeyType is a new type for CtxRequestIDKey
const ( // CtxRequestIDKey is a key to get request id from context. CtxRequestIDKey CtxRequestIDKeyType = iota + 1 )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a logger.
func (*Logger) WithFields ¶
WithFields sets several fields.
func (*Logger) WithPrefix ¶
WithPrefix sets prefix.
Click to show internal directories.
Click to hide internal directories.