redesign logging system