logger

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Fatalf

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

func Infof

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

func SetLogLevel

func SetLogLevel(level Loglevel)

func Tracefile added in v0.2.0

func Tracefile(filename string, data []byte) error

writes data to filename

func Warnf

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

Types

type Loglevel

type Loglevel int
const (
	TRACE Loglevel = iota // 0
	DEBUG Loglevel = iota // 1
	INFO  Loglevel = iota // 2
	WARN  Loglevel = iota // 3
	ERROR Loglevel = iota // 4
	FATAL Loglevel = iota // 5
)

Jump to

Keyboard shortcuts

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