logging

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRITICAL = 50
	ERROR    = 40
	WARN     = 30
	INFO     = 20
	DEBUG    = 10
)
View Source
const (
	CALLDEPTH = 3
	FLAGS     = log.Lshortfile | log.LstdFlags | log.Lmicroseconds
)

Set the calldepth so we get the right file when logging

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func Get

func Get() *Logger

func (*Logger) Critical

func (self *Logger) Critical(v ...interface{})

func (*Logger) Criticalf

func (self *Logger) Criticalf(format string, v ...interface{})

func (*Logger) Debug

func (self *Logger) Debug(v ...interface{})

func (*Logger) Debugf

func (self *Logger) Debugf(format string, v ...interface{})

func (*Logger) Error

func (self *Logger) Error(v ...interface{})

func (*Logger) Errorf

func (self *Logger) Errorf(format string, v ...interface{})

func (*Logger) Info

func (self *Logger) Info(v ...interface{})

func (*Logger) Infof

func (self *Logger) Infof(format string, v ...interface{})

func (*Logger) SetLevel

func (self *Logger) SetLevel(level int)

func (*Logger) SetOutput

func (self *Logger) SetOutput(w io.Writer)

func (*Logger) Warn

func (self *Logger) Warn(v ...interface{})

func (*Logger) Warnf

func (self *Logger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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