log

package
v0.411.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx context.Context, message string, err error, tags ...telemetry.Tag)

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

func Print(ctx context.Context, message string, tags ...telemetry.Tag)

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

func With

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

With sends a tag list to the installed loggers.

Types

type Event

type Event telemetry.Event

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL