logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 5 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{}) error

func Infof

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

func Panicf

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

func Printf

func Printf(level Level, format string, a ...interface{})

func SetLogFile

func SetLogFile(filename string)

func SetLogLevel

func SetLogLevel(levelStr string)

func SetLogStderr

func SetLogStderr(enable bool)

Types

type Level

type Level uint32

Level type

const (
	PanicLevel Level = iota
	ErrorLevel
	InfoLevel
	DebugLevel
	MaxLevel
	UnknownLevel
)

func GetLoggingLevel

func GetLoggingLevel(levelStr string) Level

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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