logger: Drop RAM usage

Thanks to Cl3Kener