monitor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = log.New()

Functions

func LogCachedQuery added in v0.5.0

func LogCachedQuery(method string)

LogCachedQuery logs a cache hit for a given method

func LogFailedQuery

func LogFailedQuery(method string, query interface{}, error interface{})

LogFailedQuery takes a method name, query params, response error object and logs it

func LogSuccessfulQuery

func LogSuccessfulQuery(method string, time float64)

LogSuccessfulQuery takes a remote method name and execution time and logs it

func RequestLoggingMiddleware

func RequestLoggingMiddleware(next http.Handler) http.Handler

func SetupLogging added in v0.5.0

func SetupLogging()

SetupLogging initializes and sets a few parameters for the logging subsystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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