If script doesn't work, you could maybe try starting everything from within GNU screen or tmux with logging turned on?
These methods would fetch Sway error messages, but nothing else, no? This is not about Sway messages.
These methods would fetch Sway error messages, but nothing else, no? This is not about Sway messages.