log

package
v0.12.3-pre.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int

Level parameterizes log severity.

const (
	Error Level
	Warning
	Info
	Debug
	Trace
)

func LabeledLevel

func LabeledLevel(lm label.Map) Level

LabeledLevel extracts the labeled log l

func (Level) Log

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

Log exports a log event labeled with level l.

func (Level) Logf

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

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

Jump to

Keyboard shortcuts

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