logging

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 212

Documentation

Index

Constants

View Source
const (
	TRACE level
	DEBUG
	INFO
	WARNING
	ERROR
	CRITICAL
)

loglevels

Variables

This section is empty.

Functions

func SetLogLevel

func SetLogLevel(lv level)

SetLogLevel congigure log settings

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger struct for logging

func GetLogger

func GetLogger(tag string) *Logger

GetLogger get the logger

func (*Logger) Criticalf

func (logger *Logger) Criticalf(m string, args ...interface{})

Criticalf critical log

func (*Logger) Debugf

func (logger *Logger) Debugf(m string, args ...interface{})

Debugf debug log

func (*Logger) Errorf

func (logger *Logger) Errorf(m string, args ...interface{})

Errorf error log

func (*Logger) Infof

func (logger *Logger) Infof(m string, args ...interface{})

Infof info log

func (*Logger) Tracef

func (logger *Logger) Tracef(m string, args ...interface{})

Tracef trace log for debugging details

func (*Logger) Warningf

func (logger *Logger) Warningf(m string, args ...interface{})

Warningf warning log

Jump to

Keyboard shortcuts

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