Something changed about generating log

Add the event method of generating log