Closed #5413: Enhanced cc.log function

Enhanced cc.log function