Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallLogger ¶
type CallLogger interface { // Observe some intermediate point in the function call. Observe(string, ...interface{}) // Call this when the function returns. Usually use in a defer call. Returned() }
CallLogger is used to log the entry and exit of a function, including whether a context has been completed. It can also be used to observe any interesting events in between.
func NewCallLogger ¶
func NewCallLogger(ctx context.Context, functionName string, logr *logger.LocLoggingEntry) CallLogger
NewCallLogger creates a new logger for a function with an optional context.
Click to show internal directories.
Click to hide internal directories.