En regardant autour /var/log
sur MacOS 10.11, j'ai trouvé ce fichier journal wifi.log. La recherche suivante vous donnera une bonne perspective sur le changement de statut du WiFi :
$ grep processAirPortStateChanges /var/log/wifi.log \
| grep connect \
| grep -v -e "old state=disconnected, new state=disconnected" \
-e "old state=connecting, new state=connecting" \
-e "old state=disconnected, new state=auto-join" \
-e "old state=auto-join, new state=connecting" \
| cut -d' ' -f1-5,12-
Exemple de sortie (oui, mon nouveau routeur Comcast est défaillant, c'est pourquoi je suis tombé sur cette question en cherchant moi-même le fichier journal) :
Sun Apr 3 00:46:08.540 old state=connecting, new state=4 bars
Sun Apr 3 01:46:50.509 old state=4 bars, new state=disconnected
Sun Apr 3 01:46:52.839 old state=4 bars, new state=connecting
Sun Apr 3 01:46:53.944 old state=connecting, new state=4 bars
Sun Apr 3 02:47:36.283 old state=4 bars, new state=disconnected
Sun Apr 3 02:47:37.900 old state=4 bars, new state=connecting
Sun Apr 3 02:47:38.385 old state=connecting, new state=4 bars
Sun Apr 3 03:49:38.732 old state=4 bars, new state=disconnected
Sun Apr 3 04:50:24.289 old state=4 bars, new state=disconnected
Sun Apr 3 04:50:26.313 old state=4 bars, new state=connecting
Sun Apr 3 04:50:27.026 old state=connecting, new state=4 bars
Sun Apr 3 05:51:10.288 old state=4 bars, new state=disconnected
Sun Apr 3 06:35:17.291 old state=4 bars, new state=disconnected
Sun Apr 3 06:35:19.983 old state=connecting, new state=4 bars
Sun Apr 3 08:18:36.758 old state=4 bars, new state=disconnected
Sun Apr 3 08:18:41.836 old state=4 bars, new state=connecting
Sun Apr 3 08:18:42.187 old state=connecting, new state=4 bars