Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalInfo ¶
type AdditionalInfo struct { Key string Value interface{} }
AdditionalInfo is a key-value pair that will be added to the log
type Interface ¶ added in v0.17.0
type Interface interface { // Info logs information based on a message and key-value elements Info(ctx context.Context, msg string, info ...AdditionalInfo) // Error logs error based on a message and key-value elements Error(ctx context.Context, msg string, info ...AdditionalInfo) }
Logger is the interface that must be implemented by a logger
Click to show internal directories.
Click to hide internal directories.