util

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogIndividualTransfers = parseBool(os.Getenv("LOG_TRANSFERS"))

LogIndividualTransfers is set to the boolean value of the LOG_TRANSFERS environment variable.

Functions

func Log

func Log(level LogLevel, msg string, args ...interface{})

Log writes a log message. LogDebug messages are only written if the environment variable `DEBUG` is set.

Types

type LogLevel

type LogLevel int

LogLevel is the first argument to Log().

const (
	LogFatal LogLevel = iota
	LogError
	LogInfo
	LogDebug
)

Acceptable log levels.

Jump to

Keyboard shortcuts

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