Documentation ¶
Index ¶
- Variables
- func Context(req *http.Request) string
- func Debug(message string, data Data)
- func DebugC(context string, message string, data Data)
- func DebugR(req *http.Request, message string, data Data)
- func Error(err error, data Data)
- func ErrorC(context string, err error, data Data)
- func ErrorR(req *http.Request, err error, data Data)
- func Event(name string, context string, data Data)
- func Handler(h http.Handler) http.Handler
- func Trace(message string, data Data)
- func TraceC(context string, message string, data Data)
- func TraceR(req *http.Request, message string, data Data)
- type Data
Constants ¶
This section is empty.
Variables ¶
View Source
var HumanReadable = func() bool { if len(os.Getenv("HUMAN_LOG")) > 0 { return true } return false }()
HumanReadable, if true, outputs log events in a human readable format
View Source
var Namespace = "service-namespace"
Namespace is the service namespace used for logging
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.