log

package
v0.0.0-...-d4adcb1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LvlCrit  = log.LvlCrit
	LvlError = log.LvlError
	LvlWarn  = log.LvlWarn
	LvlInfo  = log.LvlInfo
	LvlDebug = log.LvlDebug
	LvlTrace = log.LvlTrace
)

Variables

This section is empty.

Functions

func Crit

func Crit(msg string, args ...interface{})

func Debug

func Debug(msg string, args ...interface{})

func Error

func Error(msg string, args ...interface{})

func Errorf

func Errorf(msg string, err error, args ...interface{})

Prettier error logging.

func Info

func Info(msg string, args ...interface{})

func LvlFromString

func LvlFromString(lvl string) (log.Lvl, error)

func New

func New(ctx ...interface{}) log.Logger

func NewGlogHandler

func NewGlogHandler(h log.Handler) *log.GlogHandler

func Root

func Root() log.Logger

func StreamHandler

func StreamHandler(w io.Writer, f log.Format) log.Handler

func TerminalFormat

func TerminalFormat(color bool) log.Format

func Trace

func Trace(msg string, args ...interface{})

func Warn

func Warn(msg string, args ...interface{})

Types

type Logger

type Logger = log.Logger

Re-export geth logger types for convenience.

type Lvl

type Lvl = log.Lvl

Re-export geth logger types for convenience.

Jump to

Keyboard shortcuts

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