package bklog

import "github.com/moby/buildkit/util/bklog"

Index

Variables

var (
	G = GetLogger
	L = logrus.NewEntry(logrus.StandardLogger())
)

Functions

func GetLogger

func GetLogger(ctx context.Context) (l *logrus.Entry)

GetLogger retrieves the current logger from the context. If no logger is available, the default logger is returned.

func WithLogger

func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context

WithLogger returns a new context with the provided logger. Use in combination with logger.WithField(s) for great effect.

Source Files

log.go

Version
v0.9.2
Published
Nov 2, 2021
Platform
js/wasm
Imports
3 packages
Last checked
4 seconds ago

Tools for package owners.