logger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: ISC Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Categories map[string]struct{}
	UseColors  = true
	LevelNames = map[Level]string{
		LogError:   "error",
		LogWarning: "warning",
		LogDebug:   "debug",
		LogInfo:    "info",
	}
)

Functions

func Print

func Print(level Level, logType string, message string)

func Printf

func Printf(level Level, logType string, format string, a ...interface{})

Types

type Level

type Level int
const (
	LogDebug Level = iota
	LogInfo
	LogWarning
	LogError
)

Jump to

Keyboard shortcuts

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