Documentation ¶
Index ¶
Constants ¶
View Source
const RequestIdKey key = 0
the value actually doesn't matter, the type alone will guarantee no package gets at this context value
Variables ¶
This section is empty.
Functions ¶
func ChildCtxWithRequestID ¶
func GetRequestID ¶
func SetLoglevel ¶
func SetLoglevel(severity string)
func SetupLogging ¶
Types ¶
type Logger ¶
type Logger interface { Debug(format string, v ...interface{}) Info(format string, v ...interface{}) Warn(format string, v ...interface{}) Error(format string, v ...interface{}) // expected to terminate the process Fatal(format string, v ...interface{}) }
func LoggerFromContext ¶
func NewNoopLogger ¶
func NewNoopLogger() Logger
Click to show internal directories.
Click to hide internal directories.