Documentation ¶
Index ¶
- func Errorf(format string, args ...interface{})
- func ErrorfSkipframes(skipframes int, format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Init()
- func Panicf(format string, args ...interface{})
- func StdErrorLogger() *log.Logger
- func Warnf(format string, args ...interface{})
- func WarnfSkipframes(skipframes int, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorfSkipframes ¶ added in v1.32.8
ErrorfSkipframes logs error message and skips the given number of frames for the caller.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs fatal message and terminates the app.
func Init ¶
func Init()
Init initializes the logger.
Init must be called after flag.Parse()
There is no need in calling Init from tests.
func StdErrorLogger ¶
StdErrorLogger returns standard error logger.
func Warnf ¶ added in v1.34.9
func Warnf(format string, args ...interface{})
Warnf logs warn message.
func WarnfSkipframes ¶ added in v1.34.9
WarnfSkipframes logs warn message and skips the given number of frames for the caller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.