Documentation ¶
Index ¶
- func Background() context.Context
- func GetLogger(ctx context.Context) *logrus.Entry
- func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context
- func WithLoggerDiscarded(ctx context.Context) context.Context
- func WithLoggerFromWriter(ctx context.Context, writer io.Writer) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
Background returns a default context with logger discarded.
func GetLogger ¶
GetLogger retrieves the current logger from the context. This method wraps github.com/containerd/containerd/log.GetLogger()
func WithLogger ¶
WithLogger returns a new context with the provided logger. This method wraps github.com/containerd/containerd/log.WithLogger()
func WithLoggerDiscarded ¶
WithLoggerDiscarded returns a new context with the logger, writting to nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.