Closed #3325: A better implemetation of cc.log

A better implemetation of cc.log