logging

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	WARN
	ERROR
	FATAL
)

Variables

This section is empty.

Functions

func Debug

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

func DefaultLogf

func DefaultLogf(level int, format string, args ...interface{})

func DummyLog added in v0.2.7

func DummyLog(level int, format string, args ...interface{})

func Error

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

func Fatal

func Fatal(format string, args ...interface{})

func Info

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

func SetLevel

func SetLevel(level int)

func Warn

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

Types

type LogFunc

type LogFunc func(level int, format string, args ...interface{})
var Log LogFunc = DefaultLogf

Jump to

Keyboard shortcuts

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