Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
Configuration stores the config for the logger
func LoadLogConfig ¶
func LoadLogConfig() *Configuration
LoadLogConfig returns the log configuration
type Fields ¶
type Fields map[string]interface{}
Fields Type to pass when we want to call WithFields for structured logging
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Debug(format string) Infof(format string, args ...interface{}) Info(format string) Warnf(format string, args ...interface{}) Warn(format string) Errorf(format string, args ...interface{}) Error(format string) Fatalf(format string, args ...interface{}) Panicf(format string, args ...interface{}) WithFields(keyValues Fields) Logger }
Logger is our contract for the logger
func DefaultLogger ¶
func DefaultLogger() Logger
DefaultLogger creates and returns a new default logger.
Click to show internal directories.
Click to hide internal directories.