Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) logrus.FieldLogger
FromContext returns an logger with all values from context loaded on it.
func SetLogger ¶
func SetLogger(logger logrus.FieldLogger)
SetLogger receives a logger and stores it as the base logger for the package.
Types ¶
type IndexContext ¶
type IndexContext int
IndexContext is a key type for context values
const (
TraceIDKey IndexContext = iota
)
Key constants for context values
Click to show internal directories.
Click to hide internal directories.