Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotator ¶
Annotator is a function that reads the http headers of incoming requests searching for special logging arguments
func CopyLoggerWithLevel ¶
CopyLoggerWithLevel makes a copy of the given (logrus) logger at the logger level. If copying an entry, use CopyLoggerWithLevel(entry.Logger, level).WithFields(entry.Data) on the result (changes to these entries' fields will not affect each other).
func LogLevelInterceptor ¶
func LogLevelInterceptor(defaultLevel logrus.Level) grpc.UnaryServerInterceptor
LogLevelInterceptor sets the level of the logger in the context to either the default or the value set in the context via grpc metadata. Also sets the custom log tag if present for pseudo-tracing purposes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.