Help us shape the future of Go! Take the 2026 Go Developer Survey

trace

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l *log.Logger)

SetLogger sets the logger to use for tracing.

func SetTarget

func SetTarget(target Target)

SetTarget sets the tracing targets.

Types

type Target

type Target int32

Target is a tracing target.

const (
	// General traces general operations.
	General Target = 1 << iota

	// Packet traces git packets.
	Packet
)

func (Target) Print

func (t Target) Print(args ...interface{})

Print prints the given message only if the target is enabled.

func (Target) Printf

func (t Target) Printf(format string, args ...interface{})

Printf prints the given message only if the target is enabled.

Jump to

Keyboard shortcuts

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