Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs message with DEBUG log level.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs message with ERROR 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.