Take input from standard input and save it in a log file

logsave

logsave {{logfile}} -

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