lg

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 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(fmt string, args ...interface{})

Debug logs debug-level log message

func Error

func Error(fmt string, args ...interface{})

Error logs an erorr-level log message

func Info

func Info(fmt string, args ...interface{})

Info logs an info-level log message.

func SetLogger

func SetLogger(l Logger)

SetLogger assigns a logger to use

func Warning

func Warning(fmt string, args ...interface{})

Warning logs a warning-level log message

Types

type Logger

type Logger interface {
	Debug(fmt string, args ...interface{})
	Info(fmt string, args ...interface{})
	Warning(fmt string, args ...interface{})
	Error(fmt string, args ...interface{})
}

Logger is a (very simple) leveled logger. Replace with your preferred implementation

Jump to

Keyboard shortcuts

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