Documentation ¶
Overview ¶
Package log provides utility functions for logging to the console.
Index ¶
- func Debugf(format string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(format string, args ...interface{})
- func Warn(msg string, fields ...zap.Field)
- func Warnf(format string, args ...interface{})
- type Badger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf uses fmt.Sprintf to log a formatted string.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf uses fmt.Sprintf to log a formatted string.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf uses fmt.Sprintf to log a formatted string, and then calls process.Exit.
func Infof ¶
func Infof(format string, args ...interface{})
Infof uses fmt.Sprintf to log a formatted string.
Types ¶
type Badger ¶
type Badger struct {
Prefix string
}
Badger wraps the global zap.Logger for the badger.Logger interface.
Click to show internal directories.
Click to hide internal directories.