Make console be compatible  with Cocos Framework.