Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么是--日志文件-“日志文件”;在Heroku文件中是什么意思?_Heroku - Fatal编程技术网

什么是--日志文件-“日志文件”;在Heroku文件中是什么意思?

什么是--日志文件-“日志文件”;在Heroku文件中是什么意思?,heroku,Heroku,查看更新的“”指南,他们有以下示例文件: web: gunicorn hellodjango.wsgi --log-file - --log file-是什么意思?它的意思是“登录到标准输出”。--log file标志允许您设置日志文件的路径,-表示“stdout”(在此上下文中)。谢谢!我假设这不是我想在生产中使用的设置,对吗?@Sologoub:实际上,向stdout发送日志消息是有意义的,因为Heroku收集stdout的输出并在他们自己的日志工具中使用它。

查看更新的“”指南,他们有以下示例文件:

web: gunicorn hellodjango.wsgi --log-file -

--log file-是什么意思?

它的意思是“登录到标准输出”。
--log file
标志允许您设置日志文件的路径,
-
表示“stdout”(在此上下文中)。

谢谢!我假设这不是我想在生产中使用的设置,对吗?@Sologoub:实际上,向stdout发送日志消息是有意义的,因为Heroku收集stdout的输出并在他们自己的日志工具中使用它。