Documentation
¶
Index ¶
- func CheckWrite(lvl Level, msg string, fields ...Field)
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetDefaultField(key string, value interface{})
- func SetDefaultService(value string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type Field
- type Fields
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWrite ¶ added in v1.9.4
func SetDefaultField ¶ added in v1.10.4
func SetDefaultField(key string, value interface{})
func SetDefaultService ¶ added in v1.10.4
func SetDefaultService(value string)
Types ¶
type Logger ¶
type Logger interface {
WithField(key string, value interface{}) Logger
WithFields(fields Fields) Logger
WithError(err error) Logger
WithTracing(ctx context.Context) Logger
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Warningf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Fatalf(format string, args ...interface{})
Panicf(format string, args ...interface{})
Debug(args ...interface{})
Info(args ...interface{})
Warn(args ...interface{})
Warning(args ...interface{})
Error(args ...interface{})
Fatal(args ...interface{})
Panic(args ...interface{})
CheckWrite(lvl Level, msg string, fields ...Field)
Sync() error
}
func WithFields ¶
func WithTracing ¶ added in v1.7.0
WithTracing will take an OpenCensus trace and add log fields for Datadog.
Click to show internal directories.
Click to hide internal directories.