log

package
v0.0.0-...-9d0575d Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogError

func LogError(msg string, args ...interface{})

Error logs a message to the 'standard' Logger (always)

func LogInfo

func LogInfo(msg string, args ...interface{})

Info logs a message to the 'standard' Logger if MaxLogLevel is >= INFO

func LogTrace

func LogTrace(msg string, args ...interface{})

Trace logs a message to the 'standard' Logger if MaxLogLevel is >= TRACE

func LogWarn

func LogWarn(msg string, args ...interface{})

Warn logs a message to the 'standard' Logger if MaxLogLevel is >= WARN

func SetLogLevel

func SetLogLevel(level string) (ok bool)

SetLogLevel sets MaxLogLevel based on the provided string

Types

type LogLevel

type LogLevel int
const (
	ERROR LogLevel = iota
	WARN
	INFO
	TRACE
)
var MaxLogLevel LogLevel = TRACE

Jump to

Keyboard shortcuts

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