Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func IsDebugLevel() bool
- func LogRequest(req *http.Request)
- func Setup()
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var Log *zap.SugaredLogger
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf does debug level logging similar to fmt.Printf. Most verbose logging level
func Error ¶
func Error(args ...interface{})
Error level logging. Use this to log errors which dont immediately halt the application.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf does error level logging similar to fmt.Printf. Use this to log errors which dont immediately halt the application.
func Fatal ¶
func Fatal(args ...interface{})
Fatal level logging. Use this to log errors which crash the application.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf does fatal level logging similar to fmt.Printf. Use this to log errors which crash the application.
func Info ¶
func Info(args ...interface{})
Info level logging. Use this to log the state of the application. Dont use Logger.Info in the flow of individual events. Use Logger.Debug instead.
func Infof ¶
func Infof(format string, args ...interface{})
Infof does info level logging similar to fmt.Printf. Use this to log the state of the application. Dont use Logger.Info in the flow of individual events. Use Logger.Debug instead.
func IsDebugLevel ¶
func IsDebugLevel() bool
func LogRequest ¶
LogRequest reads and logs the request body and resets the body to original state.
Types ¶
This section is empty.