Documentation ¶
Overview ¶
Package debug provides an infrastructure for logging debug information and breakpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpStacktrace ¶
func DumpStacktrace() string
func Log ¶
func Log(f string, args ...interface{})
Log prints a message to the debug log (if debug is enabled).
func RoundTripper ¶
func RoundTripper(upstream http.RoundTripper) http.RoundTripper
RoundTripper returns a new http.RoundTripper which logs all requests (if debug is enabled). When debug is not enabled, upstream is returned.
func TestDisableLog ¶
func TestLogToStderr ¶
TestLogToStderr configures debug to log to stderr if not the debug log is not already configured and returns whether logging was enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.