loop restraining logger for Objective-C