logger

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug sends a debug log message.

func DisableTime

func DisableTime()

DisableTime hides time in log messages.

func EnableDebug

func EnableDebug()

EnableDebug increases logging, more verbose (debug)

func Error

func Error(format string, v ...interface{})

Error sends an error log message.

func Fatal

func Fatal(format string, v ...interface{})

Fatal sends a fatal log message and stop the execution of the program.

func Info

func Info(format string, v ...interface{})

Info sends an info log message.

Types

type LogLevel

type LogLevel uint32

LogLevel type.

const (
	// LevelFatal should be used in fatal situations, the app will exit.
	LevelFatal LogLevel = iota

	// LevelError should be used when someone should really look at the error.
	LevelError

	// LevelInfo should be used during normal operations.
	LevelInfo

	// LevelDebug should be used only during development.
	LevelDebug
)

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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