revise the demo of log, remove useless code snippet