add Log.h && refactoring