Perl Catalyst 和 FastCgi 错误记录问题

标签 perl apache model-view-controller fastcgi catalyst

我有一个通过快速 cgi 运行的催化剂应用程序,而 apache 错误日志毫无用处。

例子:

[Thu Oct 13 08:44:35 2011] [error] [client {IP}] FastCGI: server "/usr/local/www/handprints2/script/handprints2_fastcgi.pl" stderr: |  -> handprints2::View::json->process                       | 0.000523s |, referer: https://[SERVER]/handprints2/

[Thu Oct 13 08:44:35 2011] [error] [client {IP}] FastCGI: server "/usr/local/www/handprints2/script/handprints2_fastcgi.pl" stderr: | /end                                                       | 0.000324s |, referer: https://[SERVER]handprints2/

[Thu Oct 13 08:44:35 2011] [error] [client {IP}] FastCGI: server "/usr/local/www/handprints2/script/handprints2_fastcgi.pl" stderr: '------------------------------------------------------------+-----------', referer: https://[SERVER]/handprints2/

有办法解决这个问题吗?

最佳答案

您可以使用 TransferLogLogFormat 指令在 apache 中配置您自己的日志提要和格式:

   TransferLog /tmp/sample.log
    LogFormat "bazinga -> %U"

参见 Apache 2.0 Logging DirectivesApache 1.3 Logging Directives

关于Perl Catalyst 和 FastCgi 错误记录问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7758156/

相关文章:

apache - apache prefork 模块中的 suexec 函数是否稳定?

javascript - 子行总是在 datatables.net 中展开

perl - 如何使用 Perl 中的 Mechanize 跟踪包含 2 项内容的链接?

regex - Perl 或 Awk : Match Movie run times greater than 5 hours

apache - Docker apache 图像,将日志存储在主机中?

javascript - 如何保护 EmberJS 或任何 Javascript MVC 框架?

model-view-controller - 保持模型和 UI 同步的选项(在桌面应用程序上下文中)

perl - 用 perl 错误编写 utf8?

perl - 多站点感知 PSGI 应用程序开发

mysql - Wordpress 的一个 apache 进程消耗 100% CPU。该怎么办?