tools: golang.org/x/tools/internal/telemetry/log Index | Files

package log

import "golang.org/x/tools/internal/telemetry/log"

Package log is a context based logging package, designed to interact well with both the lsp protocol and the other telemetry packages.

Index

Package Files

log.go

func Error Uses

func Error(ctx context.Context, message string, err error, tags ...tag.Tagger)

Error takes a message and a tag list and combines them into a single tag list before delivering them to the loggers. It captures the error in the delivered event.

func Print Uses

func Print(ctx context.Context, message string, tags ...tag.Tagger)

Print takes a message and a tag list and combines them into a single tag list before delivering them to the loggers.

func With Uses

func With(ctx context.Context, tags ...telemetry.Tag)

With sends a tag list to the installed loggers.

type Event Uses

type Event telemetry.Event

Package log imports 5 packages (graph) and is imported by 16 packages. Updated 2020-02-24. Refresh now. Tools for package owners.