add log logic
improve log func
Merge branch 'ph9_dev' into ph9_review