add setLogger method
Merge pull request #355 from wenshao/master

add setLogger method