Documentation ¶
Index ¶
- func Debug(ctx context.Context, err error)
- func Debugf(ctx context.Context, format string, args ...interface{})
- func EnableDebug(ctx context.Context) context.Context
- func EnableJSON()
- func EnableStacks()
- func EnableVerbose()
- func ErrorsOnly()
- func Log(ctx context.Context, err error)
- func Logf(ctx context.Context, format string, args ...interface{})
- func RequestID(ctx context.Context) string
- func SetRequestID(ctx context.Context) context.Context
- func WithField(ctx context.Context, field string, value interface{}) context.Context
- func WithFields(ctx context.Context, fields Fields) context.Context
- type Fields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableDebug ¶
EnableDebug will return a context where debug logging is enabled for it and all child contexts.
func EnableStacks ¶
func EnableStacks()
EnableStacks enables stack information via the Source field.
func EnableVerbose ¶
func EnableVerbose()
EnableVerbose sets verbose logging. All debug messages will be logged.
func ErrorsOnly ¶ added in v0.23.0
func ErrorsOnly()
ErrorsOnly will disable all log output except errors.
func SetRequestID ¶
SetRequestID will assign a unique ID to the context for tracing.
Types ¶
Click to show internal directories.
Click to hide internal directories.