optimize logging method to improve VM performance. reduce 1/3.