In Windows I used a Windows-exclusive program called USBLogView to check USB devices for loose connections. USBLogView provides an overview over all plug and unplug events for USB devices. Say you have a USB device connected event at 13:37:00 and a disconnect event at 13:45:10 followed by a reconnect event at 13:45:13. This would be a clear indication of a USB device with a loose connection. In Windows you additionally could identify USB devices with loose connections based on sound notifications.
I recently switched to a Mac mini with an M1 and have not found a way to replace USBLogView. Addtionally MacOS seems to not offer the option to play a sound notification for USB devices being disconnected/connected.
I know I can access an overview of all USB devices connected to my Mac under «About this Mac», «System Report...», «USB». However that overview does not even react when I manually disconnect a USB device.
I also know that using the terminal command ioreg -p IOUSB lists all currently connected USB devices as well, but it does so without providing time stamps and thus it is not possible to deduce whether there has been a disconnect or not.
I also tried using the Console, as explained in this StackExchange thread. However upon selecting system.log in the Console, and then searching for «USBMSC» I just get zero results.
I found a StackExchange thread in which someone stated the following: «Unfortunately peripheral connections are simply something that isn't logged by your Mac.» Is this really true? Or is there a way to check when a USB device was connected/disconnected in MacOS?