Logger overwriting records with Rocket Mode enabled

Using the logger from pyrevit or my own, with "rocket_mode_compatible": "True" inside my extension settings. It overwrites previous made records inside my log file when using multiple scripts.

Placing __cleanengine__ = True at the start of any button script solves this problem, but it does not for any module/script made within my lib folder.

How can I fix this problem without disabling Rocket Mode?