logger

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.1.2

func Debug(msgs ...interface{})

Debug logs message of arguments.

func Debugf added in v0.1.2

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

Debugf logs formatted message of arguments.

func Error

func Error(msgs ...interface{})

Error logs message of arguments.

func Errorf

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

Errorf logs formatted message of arguments.

func Info

func Info(msgs ...interface{})

Info logs message of arguments.

func Infof

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

Infof logs formatted message of arguments.

func SetLevel added in v0.1.2

func SetLevel(level LogLevel)

SetLevel sets current log level to level.

func Warn

func Warn(msgs ...interface{})

Warn logs message of arguments.

func Warnf

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

Warnf logs formatted message of arguments.

Types

type LogLevel added in v0.1.2

type LogLevel uint

LogLevel = uint

const (
	// ErrorLevel = 1
	ErrorLevel LogLevel = 1
	// WarnLevel = 2
	WarnLevel LogLevel = 2
	// InfoLevel = 3
	InfoLevel LogLevel = 3
	// DebugLevel = 4
	DebugLevel LogLevel = 4
)

Jump to

Keyboard shortcuts

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