Send raft and delayd logs to their own file

If the config value log_dir is set, raft and delayd logs will be sent to
files under that directory.