debug

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 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

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 TestDisableLog(_ testing.TB)

func TestLogToStderr

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