Binary package “logsave” in ubuntu focal

save the output of a command in a log file

 The logsave program will execute cmd_prog with the specified
 argument(s), and save a copy of its output to logfile. If the
 containing directory for logfile does not exist, logsave will
 accumulate the output in memory until it can be written out. A copy
 of the output will also be written to standard output.