logtrace

package
v0.0.0-...-aa67389 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

A Trace represents an active request.

func New

func New(family, title string) *Trace

New trace.

func (*Trace) Debugf

func (t *Trace) Debugf(format string, a ...interface{})

Debugf adds this message to the trace's log, with a debugging level.

func (*Trace) Error

func (t *Trace) Error(err error) error

Error marks the trace as having seen an error, and also logs it to the trace's log.

func (*Trace) Errorf

func (t *Trace) Errorf(format string, a ...interface{}) error

Errorf adds this message to the trace's log, with an error level.

func (*Trace) Finish

func (t *Trace) Finish()

Finish the trace. It should not be changed after this is called.

func (*Trace) Printf

func (t *Trace) Printf(format string, a ...interface{})

Printf adds this message to the trace's log.

func (*Trace) SetMaxEvents

func (t *Trace) SetMaxEvents(n int)

SetMaxEvents sets the maximum number of events that will be stored in the trace. It must be called right after initialization.

Jump to

Keyboard shortcuts

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