update log analyzor code and fix some api bug.

Change-Id: I1247cd89e4dc44559016451e509e55f0541de480