logger: Add an enable toggle for entry storage (Thanks to AndreiLux)