Closed #5413: Enhanced cc.log function