Logging with 50Hz

Dear List

I am looking for a possibilty to have log information written to the log file at high frequency (e.g. 50Hz or more).

Is there a way to do this? And how?

Reason for it, is the need for dense sonar logging with the LightWare SF00 LiDAR.

Looking forward to any hint.