log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug = &logger{l: log.Debug}
	Info  = &logger{l: log.Info}
	Error = &logger{l: log.Error}
)
View Source
var (
	DebugLevel = log.DebugLevel
	InfoLevel  = log.InfoLevel
	ErrorLevel = log.ErrorLevel
)

Functions

func New

func New(level log.Level, prefix string) *logger

func NewStdLogger

func NewStdLogger(l log.Logger) *stdlog.Logger

func SetLevel

func SetLevel(level string)

func SetPrefix

func SetPrefix(prefix string)

Types

type Level

type Level = log.Level

Jump to

Keyboard shortcuts

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