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.

Source Files