You probably want to log IMU events, but you also probably want to log button events.
(Or, you could maybe log SaberBase events see common/saber_base.h)
Either way you’re going to need to do some coding to extract, send, receive and inject these events.
Regardless of what type of events you extract, the serial port is almost certainly the way to talk to the ESP32.