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

package log

import "golang.org/x/tools/internal/lsp/debug/log"

Package log provides helper methods for exporting log events to the internal/event package.

Index

Package Files

log.go

type Level Uses

type Level int

Level parameterizes log severity.

const (
    Error Level
    Warning
    Info
    Debug
    Trace
)

func LabeledLevel Uses

func LabeledLevel(lm label.Map) Level

LabeledLevel extracts the labeled log l

func (Level) Log Uses

func (l Level) Log(ctx context.Context, msg string)

Log exports a log event labeled with level l.

func (Level) Logf Uses

func (l Level) Logf(ctx context.Context, format string, args ...interface{})

Logf formats and exports a log event labeled with level l.

Package log imports 5 packages (graph) and is imported by 5 packages. Updated 2021-01-21. Refresh now. Tools for package owners.