add rotating log

fix issue #3