Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogContext = contextKey("request_logs")
LogContext is a context key.
Functions ¶
Types ¶
type LogCollector ¶
type LogCollector struct { Messages []string // contains filtered or unexported fields }
A LogCollector is used to collect logs.
func (*LogCollector) Append ¶
func (lc *LogCollector) Append(msg string)
Append appends msg into log context.
Click to show internal directories.
Click to hide internal directories.