If the log ended up on the left and the editor on the right, you do not have to redo the split.
Ctrl-b { # swap with the previous pane
Ctrl-b } # swap with the next pane
The programs keep running, only their position changes. Ctrl-b Ctrl-o rotates all the panes in the window in one go.
Swapping helps when a layout is right but the order is wrong, like a log on the left and your shell on the right when you would rather read the log on the right. Press Ctrl-b } and they trade places.
The same idea exists as a command, swap-pane -s 0 -t 2, which swaps two specific panes by number. Combine it with Ctrl-b q to see the numbers first. The panes keep their running programs and their scrollback, unlike when you close and reopen them.
The order follows the pane numbers, so with more than two panes the pane you land next to is not always the one you expect.
Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close the session again with tmux kill-session -t scratch. Nothing else on your machine is touched.
Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official), On this site: Ctrl-b Alt-arrow resizes a tmux pane five cells at a time, On this site: Ctrl-b ! turns a cramped pane into a window of its own