raft: refactoring logging