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