Modified logger to ask before erasing everything and improved it over all.