refactor logger module on writestream