Clone of the log module from the Sierra Scheduler, for CC