log

package
v0.0.0-...-7d08e18 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LevelMap = map[string]LogLevel{
	"debug":   LevelDebug,
	"verbose": LevelVerbose,
	"info":    LevelInfo,
	"warning": LevelWarning,
	"error":   LevelError,
}

Functions

func AtLevel

func AtLevel(level LogLevel) bool

func Debug

func Debug(tag string, msg string, args ...interface{})

func Debugln

func Debugln(tag string, msg string, args ...interface{})

func Error

func Error(tag string, msg string, args ...interface{})

func Errorln

func Errorln(tag string, msg string, args ...interface{})

func Info

func Info(tag string, msg string, args ...interface{})

func Infoln

func Infoln(tag string, msg string, args ...interface{})

func Log

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

func Logln

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

func SetLevel

func SetLevel(level string)

func SetTags

func SetTags(tags string)

func Timed

func Timed(titleColored, titleUncolored string, fn func())

func Verbose

func Verbose(tag string, msg string, args ...interface{})

func Verboseln

func Verboseln(tag string, msg string, args ...interface{})

func Warning

func Warning(tag string, msg string, args ...interface{})

func Warningln

func Warningln(tag string, msg string, args ...interface{})

Types

type LogLevel

type LogLevel int
const (
	LevelDebug LogLevel = iota
	LevelVerbose
	LevelInfo
	LevelWarning
	LevelError
)

Jump to

Keyboard shortcuts

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