log

package
v0.0.0-...-123e2d9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger = &StdLogger{}

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(Level LoggerLevel, kv ...interface{}) error
}

type LoggerLevel

type LoggerLevel int8
const (
	LevelDebug LoggerLevel = iota
	LevelInfo
	LevelWarn
	LevelError
)

func (LoggerLevel) String

func (l LoggerLevel) String() string

type StdLogger

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

func (StdLogger) Log

func (std StdLogger) Log(level LoggerLevel, kv ...interface{}) error

Jump to

Keyboard shortcuts

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