log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel   string    = "debug"
	InfoLevel    string    = "info"
	WarningLevel string    = "warn"
	ErrorLevel   string    = "error"
	PanicLevel   string    = "panic"
	DebugCode    LevelCode = 5
	InfoCode     LevelCode = 4
	WarningCode  LevelCode = 3
	PanicCode    LevelCode = 2
	ErrorCode    LevelCode = 1
)

Defining all the log levels and assigning them a unique digit which can be used for enabling the log level

Variables

This section is empty.

Functions

func Debug

func Debug(msgs ...interface{})

func Error

func Error(msgs ...interface{})

Error should always print to screen and exit after that

func Info

func Info(msgs ...interface{})

func Panic

func Panic(msgs ...interface{})

Panic can be enabled for debugging and development purposes

func Warn

func Warn(msgs ...interface{})

Types

type LevelCode

type LevelCode int32

Jump to

Keyboard shortcuts

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