log

package
Version: v0.0.0-...-1a8939e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel = LevelInfo

LogLevel defines the threshold of entries logged

Functions

func Debug

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

Debug prints a LevelDebug log entry

func Error

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

Error prints a LevelError log entry

func Info

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

Info prints a LevelInfo log entry

func Log

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

Log prints a log entry at the specified level

func Trace

func Trace(format string, a ...interface{})

Trace prints a LevelTrace log entry

func Warn

func Warn(format string, a ...interface{})

Warn prints a LevelWarn log entry

Types

type Level

type Level int

Level represents a log level

const (
	LevelError Level = iota
	LevelWarn
	LevelInfo
	LevelDebug
	LevelTrace
)

log level

func (Level) String

func (l Level) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL