log

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool
)

Functions

func Debugf

func Debugf(format string, a ...interface{}) (err error)

Debugf logs a message using the DEBUG priority.

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf logs a message using the ERROR priority.

func Infof

func Infof(format string, a ...interface{}) error

Infof logs a message using the INFO priority.

func Noticef

func Noticef(format string, a ...interface{}) error

Noticef logs a message using the NOTICE priority.

func StartupInfo

func StartupInfo()

Stratup Info

func Warningf

func Warningf(format string, a ...interface{}) error

Warningf logs a message using the WARNING priority.

Types

type Logger

type Logger interface {
	Output(calldepth int, s string) error
}

func SetTarget

func SetTarget(logger Logger) (prev Logger)

SetTarget sets the logging target and returns its previous value.

func Target

func Target() Logger

Target returns the current log target.

Jump to

Keyboard shortcuts

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