smallog

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

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

func Crit

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

func Debug

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

func Emerg

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

func Err

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

func GetLogLevel

func GetLogLevel() (level syslog.Priority)

func Info

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

func Notice

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

func SetCustomLogger

func SetCustomLogger(newLogger Logger) (err error)

func SetLogLevel

func SetLogLevel(level syslog.Priority)

func Warning

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

Types

type Logger

type Logger interface {
	Emerg(string, ...interface{})
	Alert(string, ...interface{})
	Crit(string, ...interface{})
	Err(string, ...interface{})
	Warning(string, ...interface{})
	Notice(string, ...interface{})
	Info(string, ...interface{})
	Debug(string, ...interface{})
}

Jump to

Keyboard shortcuts

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