Simplify and document log_capture