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)

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

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 10 packages. Updated 2019-09-20. Refresh now. Tools for package owners.