add Macro for easy logging.
test and optimize cocos appender.