log

package
v0.0.0-...-bceea35 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v interface{})

Debug writes a debug entry to the log. If the Level < LogDebug, nothing will be written.

func Debugf

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

Debugf writes a debug entry to the log using the provided format and data. If the Level < LogDebug, nothing will be written.

func Error

func Error(v interface{})

Error writes an error entry to the log. If the Level == LogNone, nothing will be written. Even though

func Errorf

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

Errorf writes an error entry to the log using the provided format and data. If the Level == LogNone, nothing will be written. Even though

func Info

func Info(v interface{})

Info writes an info entry to the log. If the Level < LogInfo, nothing will be written.

func Infof

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

Infof writes an info entry to the log using the provided format and data. If the Level < LogInfo, nothing will be written.

func ParseLogFlag

func ParseLogFlag(s string) (l int, err error)

func Set

func Set() error

SetLogging sets application logging settings and verbose output.

Types

type Level

type Level int
const (
	LogNone Level = iota
	LogError
	LogInfo
	LogDebug
)

func (Level) String

func (i Level) String() string

type LevelErr

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

func (LevelErr) Error

func (l LevelErr) Error() string

type UnknownLogFlagErr

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

func (UnknownLogFlagErr) Error

func (e UnknownLogFlagErr) Error() string

Jump to

Keyboard shortcuts

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