logging

package
v0.0.0-...-5dabda3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogLevel

func SetLogLevel(l LogLevel)

Types

type LogLevel

type LogLevel int
const (
	SILENT LogLevel = iota
	FATAL
	ERROR
	INFO
	DEBUG
)

func (*LogLevel) MarshalJSON

func (l *LogLevel) MarshalJSON() ([]byte, error)

func (LogLevel) String

func (l LogLevel) String() string

func (*LogLevel) UnmarshalJSON

func (l *LogLevel) UnmarshalJSON(data []byte) error

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var (
	Log Logger
)

func (Logger) Debug

func (l Logger) Debug(msg string)

func (Logger) Debugf

func (l Logger) Debugf(msg string, values ...interface{})

func (Logger) Error

func (l Logger) Error(msg string, err error)

func (Logger) Errorf

func (l Logger) Errorf(msg string, values ...interface{})

func (Logger) Info

func (l Logger) Info(msg string)

func (Logger) Infof

func (l Logger) Infof(msg string, values ...interface{})

func (Logger) Panic

func (l Logger) Panic(msg string, err error)

func (Logger) Panicf

func (l Logger) Panicf(msg string, values ...interface{})

Jump to

Keyboard shortcuts

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