raft: refactor logging at node level

Fix #1864