add logging feature
Merge pull request #97 from yunli2004/devR2.0

add logging feature