How to log wifi speed and strength?

Solution 1:

You can follow Apple's own steps on how to diagnose your WiFi connection. You can look specifically for the report section in that page, which explains how to and where to save the resulting data.

As a TL;DR, look in Spotlight for Wireless Diagnostics and click Window in the menu bar, there go to Logs.