Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v0.0.16
func Debugf(format string, args ...interface{})
Debugf logs message with DEBUG log level.
func Errorf ¶ added in v0.0.16
func Errorf(format string, args ...interface{})
Errorf logs message with ERROR log level.
func Fatalf ¶ added in v0.0.16
func Fatalf(format string, args ...interface{})
Fatalf logs message with FATAL log level.
Types ¶
type Fields ¶
type Fields map[string]interface{}
Fields to be passed when we want to call WithFields for structured logging.
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) WithFields(keyValues Fields) Logger }
Logger is our contract for the logger.
func WithFields ¶
WithFields builds nested logger with specified fields.
Click to show internal directories.
Click to hide internal directories.