added logger limit and creating logger backup