add logger file to android mk.
add cocos console appender.
fix exception not compiling on android.
fix trying to write to file even if not open.
change macro style.