Documentation
¶
Index ¶
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLogLevel(logLevel string) error
- func Tracef(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Context
- func (logctx *Context) AddField(key string, value interface{}) *Context
- func (logctx *Context) Debugf(format string, args ...interface{})
- func (logctx *Context) Errorf(format string, args ...interface{})
- func (logctx *Context) Fatalf(format string, args ...interface{})
- func (logctx *Context) Infof(format string, args ...interface{})
- func (logctx *Context) Tracef(format string, args ...interface{})
- func (logctx *Context) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a debug message without context to stdout
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs an error message without context to stderr
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a non-recoverable error message without context to stderr
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs an informational message without context to stdout
func SetLogLevel ¶
SetLogLevel sets the log level to use for the logger
Types ¶
type Context ¶ added in v0.2.0
type Context struct {
// contains filtered or unexported fields
}
Context contains a structured context for logging
Click to show internal directories.
Click to hide internal directories.