debug

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

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 added in v0.16.0

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 added in v0.16.0

func TestDisableLog(_ testing.TB)

func TestLogToStderr added in v0.16.0

func TestLogToStderr(_ testing.TB) bool

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.

Jump to

Keyboard shortcuts

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