update charge card function, edit log format