raft: refactoring logging
Merge pull request #1887 from xiang90/raft_logging

raft: refactoring logging