log

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(s string)

Debug logs message to stderr.

func Debugf

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

Debugf logs messages to stderr.

func Info

func Info(s string)

Info logs messages to stderr.

func Infof

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

Infof logs messages to stderr.

func IsDebugEnabled

func IsDebugEnabled() bool

IsDebugEnabled answers if messages on debug level would be logged.

func IsInfoEnabled

func IsInfoEnabled() bool

IsInfoEnabled answers if messages on info level would be logged.

func IsTraceEnabled

func IsTraceEnabled() bool

IsTraceEnabled answers if messages on trace level would be logged.

func Trace

func Trace(s string)

Trace logs message to stderr.

func Tracef

func Tracef(format string, args ...interface{})

Tracef logs message to stderr.

Types

type Level added in v0.23.0

type Level int

Level is the type for log levels.

const (
	TRACE Level = iota
	DEBUG
	INFO
	NONE
)

Log levels.

Jump to

Keyboard shortcuts

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