I\'m aware about this native OS functionality in Go libraries. In Unix based OS you can use Dup2 to copy file descriptor to a file. All log and fmt output will be set to the