Documentation ¶
Overview ¶
Package log is a context based logging package, designed to interact well with both the lsp protocol and the other telemetry packages.
Index ¶
- Constants
- func AddLogger(logger Logger)
- func Error(ctx context.Context, message string, err error, tags ...tag.Tagger)
- func Print(ctx context.Context, message string, tags ...tag.Tagger)
- func Stderr(ctx context.Context, at time.Time, tags tag.List) bool
- func With(ctx context.Context, tags ...tag.Tag)
- type Entry
- type Logger
Constants ¶
View Source
const ( // The well known tag keys for the logging system. MessageTag = tag.Key("message") ErrorTag = tag.Key("error") )
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Print takes a message and a tag list and combines them into a single tag list before delivering them to the loggers.
func Print ¶
Print takes a message and a tag list and combines them into a single tag list before delivering them to the loggers.
Types ¶
Click to show internal directories.
Click to hide internal directories.