Documentation ¶
Index ¶
- Constants
- func AddCallerSkip(ctx context.Context, skip int) context.Context
- func Debug(ctx context.Context, format string, args ...interface{})
- func Error(ctx context.Context, format string, args ...interface{})
- func Fatal(ctx context.Context, format string, args ...interface{})
- func Info(ctx context.Context, format string, args ...interface{})
- func SetLogger(ctx context.Context, logger Logger) context.Context
- func SetLoggingFields(ctx context.Context) context.Context
- func Trace(ctx context.Context, format string, args ...interface{})
- func Warn(ctx context.Context, format string, args ...interface{})
- type Field
- func Any(key string, value interface{}) Field
- func Bool(key string, value bool) Field
- func Duration(key string, value time.Duration) Field
- func ErrorValue(value error) Field
- func Int(key string, value int) Field
- func Int64(key string, value int64) Field
- func String(key, value string) Field
- func Strings(key string, value []string) Field
- type Level
- type Logger
Constants ¶
View Source
const ( TraceLevel = log.TraceLevel DebugLevel = log.DebugLevel InfoLevel = log.InfoLevel WarnLevel = log.WarnLevel ErrorLevel = log.ErrorLevel FatalLevel = log.FatalLevel )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
func ErrorValue ¶
type Logger ¶
func NewJournaldLogger ¶
func NewLogger ¶
func NewLogger(config *logging_config.LoggingConfig) Logger
func NewStderrLogger ¶
Click to show internal directories.
Click to hide internal directories.