logging

package
v0.0.0-...-4db66e5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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{})

Debugf defines our printf for debug level.

func Errorf

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

Errorf defines our printf for error level.

func Panicf

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

Panicf defines our printf for panic level.

func Printf

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

Printf provides basic Printf functionality for logs

func SetLogFile

func SetLogFile(filename string)

SetLogFile defines which log file we'll log to

func SetLogLevel

func SetLogLevel(levelStr string)

SetLogLevel sets loggingLevel

func SetLogStderr

func SetLogStderr(enable bool)

SetLogStderr enables logging to stderr

func Verbosef

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

Verbosef defines our printf for Verbose level.

Types

type Level

type Level uint32

Level type

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

PanicLevel ErrorLevel etc are our logging level constants.

func GetLoggingLevel

func GetLoggingLevel() Level

GetLoggingLevel returns loggingLevel

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