mlog

package
v0.0.0-...-59f10e1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerboseOff  = 0
	VerboseOn   = 1
	VerboseFull = 2
)
View Source
const Lshortfile = 1 << 10

log.Lshortfile doesn't work: it will always report the source file is mlog.go, because the log pavkage has the call depth hard-coded to 2. This will break if the log library ever decides to use bit 10 themselves.

Variables

View Source
var Verbose int

Verbose controls whether or not anything is logged

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Flags

func Flags() int

func Print

func Print(v ...interface{})

func Printf

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

func SetFlags

func SetFlags(flags int)

func SetOutput

func SetOutput(w io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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