// GetLogger will retrieve a logger from the given context.
GetLogger will retrieve a logger from the given context.
// GetLogger will retrieve a logger from the given context .
func GetLogger(ctx context.Context) *zap.Logger {
	if ctx == nil {
		return zap.NewNop()
	}
	if logger, ok := ctx.Value(keyLogger).(*zap.Logger); ok {
		return logger
	}
	return zap.NewNop()
}
func GetLogger ( ctx context . Context ) * zap . Logger { if ctx == nil { return zap . NewNop ( ) } if logger , ok := ctx . Value ( keyLogger ) . ( * zap . Logger ) ; ok { return logger } return zap . NewNop ( ) }
GetLogger will retrieve a logger from the given context.
GetLogger will retrieve a logger from the given context .