buf: github.com/bufbuild/buf/internal/pkg/logutil Index | Files

package logutil

import "github.com/bufbuild/buf/internal/pkg/logutil"

Package logutil implements log utilities.

Index

Package Files

logutil.go

func Defer Uses

func Defer(logger *zap.Logger, name string, fields ...zap.Field) func()

Defer returns a function to defer that logs at the debug level.

defer logutil.Defer(logger, "foo")()

func DeferWithError Uses

func DeferWithError(logger *zap.Logger, name string, retErrPtr *error, fields ...zap.Field) func()

DeferWithError returns a function to defer that logs at the debug level.

defer logutil.DeferWithError(logger, "foo", &retErr)()

Package logutil imports 2 packages (graph) and is imported by 2 packages. Updated 2019-12-12. Refresh now. Tools for package owners.