Fixed log handlers to consider backup count for factory and frontend group logs