+ modified to use char string when write log
+ log_xxx, con_xxx macro is not same from now on.