package bklog
import "github.com/moby/buildkit/util/bklog"
Index ¶
- Variables
- func EnableLogWithTraceID(b bool)
- func GetLogger(ctx context.Context) (l *logrus.Entry)
- func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context
Variables ¶
var ( G = GetLogger L = logrus.NewEntry(logrus.StandardLogger()) )
Functions ¶
func EnableLogWithTraceID ¶
func EnableLogWithTraceID(b bool)
func GetLogger ¶
GetLogger retrieves the current logger from the context. If no logger is available, the default logger is returned.
func WithLogger ¶
WithLogger returns a new context with the provided logger. Use in combination with logger.WithField(s) for great effect.
Source Files ¶
- Version
- v0.11.5
- Published
- Mar 23, 2023
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 minute ago –
Tools for package owners.