Documentation
¶
Overview ¶
Package trace extends golang.org/x/net/trace with logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventLog ¶
type EventLog struct {
// contains filtered or unexported fields
}
EventLog is used for tracing long-lived objects.
func NewEventLog ¶
NewEventLog returns a new EventLog.
func (*EventLog) Debugf ¶
Debugf adds the message to the EventLog, with a debugging level.
func (*EventLog) Errorf ¶
Errorf adds the message to the EventLog, with an error level.
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
A Trace represents an active request.
func (*Trace) Debugf ¶
Debugf adds this message to the trace's log, with a debugging level.
func (*Trace) Error ¶
Error marks the trace as having seen an error, and also logs it to the trace's log.
func (*Trace) Errorf ¶
Errorf adds this message to the trace's log, with an error level.
Click to show internal directories.
Click to hide internal directories.