logging

package
v0.0.0-...-18a76ad Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs a debug message.

func Error

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

Error logs a message with level error.

func Info

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

Info logs a message with level info.

func SetLevel

func SetLevel(l Level)

SetLevel sets the log level.

func Warning

func Warning(msg string, v ...interface{})

Warning logs a message with level warning.

Types

type Level

type Level int

Level is the type for log levels.

const (
	// LevelDebug means log debug messages and above.
	LevelDebug Level = iota
	// LevelInfo means log info messages and above.
	LevelInfo
	// LevelWarning means log warning messages and above.
	LevelWarning
	// LevelError means log error messages only.
	LevelError
	// LevelNone means log nothing.
	LevelNone
)

Jump to

Keyboard shortcuts

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