log

package
v0.0.0-...-a92cdc1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableContext

func EnableContext(id string)

func SetFlags

func SetFlags(flag int)

func SetLevel

func SetLevel(level Level)

func SetOutput

func SetOutput(writer io.Writer)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func New

func New(id string) Context

func (Context) Debugf

func (c Context) Debugf(format string, v ...interface{})

func (Context) Errorf

func (c Context) Errorf(format string, v ...interface{})

func (Context) Fatalf

func (c Context) Fatalf(format string, v ...interface{})

func (Context) Infof

func (c Context) Infof(format string, v ...interface{})

func (Context) Warnf

func (c Context) Warnf(format string, v ...interface{})

type Level

type Level int
const (
	FATAL Level = iota
	ERROR
	WARN
	INFO
	DEBUG
)

Jump to

Keyboard shortcuts

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