logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InfoLevel will be shown
	InfoLevel = 0b0001
	// LogLevel will be shown
	LogLevel = 0b0010
	// WarnLevel will be shown
	WarnLevel = 0b0100
	// CriticalLevel will be shown
	CriticalLevel = 0b1000
	// AllLevel will be shown
	AllLevel = 0b1111
)

Variables

This section is empty.

Functions

func Critical

func Critical(prefix, message string) string

Critical as [CRITICAL]prefix:message

func Info

func Info(prefix string, message string) string

Info as [INFO]prefix:message

func Log

func Log(prefix string, message string) string

Log as [LOG]prefix:message

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel sets level

func Warn

func Warn(prefix string, message string) string

Warn as [WARN]prefix:message

Types

This section is empty.

Jump to

Keyboard shortcuts

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