Documentation ¶
Overview ¶
Package clog provides a context aware leveled logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(ctx context.Context) *zap.SugaredLogger
Logger returns a zap logger with as much context as possible.
func NewLogger ¶
func NewLogger(ctx context.Context, lvl string) *zap.SugaredLogger
NewLogger returns a zap logger without any context to build from. Handles setting things like log level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.