Adding logging system