Append the output to a log file, instead of replacing its current contents

logsave

logsave -a {{logfile}} {{command}}

click the source code to copy install logsave on any operating system with command-not-found.com