log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsDebugging = false
View Source
var Stderr io.Writer = os.Stderr
View Source
var Stdout io.Writer = os.Stdout

Functions

func CleanExit

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

CleanExit prints a message and then exits with 0.

func Debug

func Debug(msg string, v ...interface{})

func Die

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

Die prints an error and then call os.Exit(1).

func Err

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

Err prints an error message. It does not cause an exit.

func Info

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

Info prints a message.

func Msg

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

Msg passes through the formatter, but otherwise prints exactly as-is.

No prettification.

func New

func New() *log.Logger

New creates a *log.Logger that writes to this source.

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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