rework logging system