sklog

package
v0.0.0-...-24f2d34 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg ...interface{})

Functions to log at various levels. Debug, Info, Warning, Error, and Fatal use fmt.Sprint to format the arguments. Functions ending in f use fmt.Sprintf to format the arguments. Functions ending in WithDepth allow the caller to change where the stacktrace starts. 0 (the default in all other calls) means to report starting at the caller. 1 would mean one level above, the caller's caller. 2 would be a level above that and so on.

func Debugf

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

func DebugfWithDepth

func DebugfWithDepth(depth int, format string, v ...interface{})

func Error

func Error(msg ...interface{})

func Errorf

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

func ErrorfWithDepth

func ErrorfWithDepth(depth int, format string, v ...interface{})

func Fatal

func Fatal(msg ...interface{})

Fatal* exits the program after logging.

func Fatalf

func Fatalf(format string, v ...interface{})

func FatalfWithDepth

func FatalfWithDepth(depth int, format string, v ...interface{})

func Flush

func Flush()

func Info

func Info(msg ...interface{})

func Infof

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

func InfofWithDepth

func InfofWithDepth(depth int, format string, v ...interface{})

func Warning

func Warning(msg ...interface{})

func Warningf

func Warningf(format string, v ...interface{})

func WarningfWithDepth

func WarningfWithDepth(depth int, format string, v ...interface{})

Types

This section is empty.

Directories

Path Synopsis
Package nooplogging has an sklogimpl.Logger that does no logging.
Package nooplogging has an sklogimpl.Logger that does no logging.
Package stdlogging implements sklogimpl.Logger and logs to either stderr or stdout.
Package stdlogging implements sklogimpl.Logger and logs to either stderr or stdout.

Jump to

Keyboard shortcuts

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