How to monitor and log my internet connectivity on Mojave
Apple’s Wireless Diagnostics tool might work. It appears to be able to monitor your connectivity and provide a report based on the results. You can find it in spotlight search.