change log format and fix log maintanance