再次运行这个程序,但是要将标准输出重定向到一个文件中,例如
Run the program again, but capture standard output to a file, for example
或者,还是使用“|”操作符,command的输出可以成为另一个程序的标准输入,如下所示。
Or, the command's output can become the standard input for another program, again using the "|" operator like this.
现在我们想将日志记录添加到这个应用程序的标准输出。
Now we want to add logging to standard output to this application.
应用推荐