logger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(message string, args ...interface{})

func Error

func Error(message ...interface{})

func Errorf

func Errorf(message string, args ...interface{})

func Info

func Info(message ...interface{})

func Infof

func Infof(message string, args ...interface{})

func Log

func Log(level LoggerLevel, args ...interface{})

func Logf

func Logf(level LoggerLevel, message string, args ...interface{})

func SetLevel

func SetLevel(_level LoggerLevel)

Types

type LoggerLevel

type LoggerLevel int
const (
	DebugLevel LoggerLevel = iota
	InfoLevel
	ErrorLevel
)

the smaller the level, the more logs.

Jump to

Keyboard shortcuts

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