Documentation
¶
Index ¶
- Constants
- func Debug(ctx context.Context, format string, values ...interface{})
- func Error(ctx context.Context, format string, values ...interface{})
- func Fatal(ctx context.Context, format string, values ...interface{})
- func Info(ctx context.Context, format string, values ...interface{})
- func Warn(ctx context.Context, format string, values ...interface{})
Constants ¶
View Source
const ( // KeyRequestID should be used to put the request-id in a request's context. KeyRequestID contextKey = iota // KeyTraceID should be used to put the trace-id in a request's context. KeyTraceID )
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug logs at the debug level.
Use it for logs that will be useful only in a debug session.
func Fatal ¶
Fatal logs at the fatal level. It panics after logging.
Use it for scenarios that are absolutely catastrophic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.