Documentation
¶
Index ¶
- func Activity(ctx context.Context, fn ActivityFunc) error
- func Debug(msg string)
- func Debugf(fmt string, args ...interface{})
- func Error(msg string)
- func Errorf(fmt string, args ...interface{})
- func Fatal(msg string)
- func Fatalf(fmt string, args ...interface{})
- func Info(msg string)
- func Infof(fmt string, args ...interface{})
- func SetLogger(logger Logger)
- func Warn(msg string)
- func Warnf(fmt string, args ...interface{})
- type ActivityFunc
- type Entry
- type Fielder
- type Fields
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Activity ¶
func Activity(ctx context.Context, fn ActivityFunc) error
Activity log within th context of the activity
Types ¶
type ActivityFunc ¶
type Entry ¶
type Entry interface {
WithFields(Fielder) Entry
WithField(string, interface{}) Entry
WithDuration(time.Duration) Entry
WithError(error) Entry
Debug(string)
Info(string)
Warn(string)
Error(string)
Fatal(string)
Debugf(string, ...interface{})
Infof(string, ...interface{})
Warnf(string, ...interface{})
Errorf(string, ...interface{})
Fatalf(string, ...interface{})
}
type Fielder ¶
type Fielder interface {
Fields() Fields
}
Fielder is an interface for providing fields to custom types.
Click to show internal directories.
Click to hide internal directories.