logger

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Debug

func Debug(args ...interface{})

Debug level logging. Most verbose logging level.

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

func LogRequest(req *http.Request)

LogRequest reads and logs the request body and resets the body to original state.

func Setup

func Setup()

Setup sets up the logger initially

func Warn

func Warn(args ...interface{})

Warn level logging. Use this to log warnings

func Warnf

func Warnf(format string, args ...interface{})

Warnf does warn level logging similar to fmt.Printf. Use this to log warnings

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL