logging

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, args ...interface{}) context.Context

func SetHandler

func SetHandler(in log15.Handler)

func SetLevel

func SetLevel(in log15.Lvl)

Types

type Ctx

type Ctx log15.Ctx

type Logger

type Logger interface {
	Let(ctx ...interface{}) Logger
	With(ctx context.Context) Logger
	At(names ...string) Logger
	Stack() Logger

	Debug(msg string, ctx ...interface{})
	Info(msg string, ctx ...interface{})
	Warn(msg string, ctx ...interface{})
	Error(msg string, ctx ...interface{})
	Crit(msg string, ctx ...interface{})
}

type LoggerBuilder

type LoggerBuilder interface {
	Let(args ...interface{}) LoggerBuilder
	With(ctx context.Context) LoggerBuilder
	At(names ...string) LoggerBuilder

	Build() Logger
}

func Builder

func Builder() LoggerBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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