php错误日志模板

php错误日志模板,php,nginx,error-handling,Php,Nginx,Error Handling,我已将错误日志配置为打开,我已将路径设置为错误文件日志。错误正在保存。问题是我对这个信息有一种奇怪的理解: 2015/12/22 00:35:38 [error] 12152#0: *57 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 3 in /var/www/movie/application/modules/frontend/controllers/IndexController.php on li

我已将错误日志配置为打开,我已将路径设置为错误文件日志。错误正在保存。问题是我对这个信息有一种奇怪的理解:

2015/12/22 00:35:38 [error] 12152#0: *57 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 3 in /var/www/movie/application/modules/frontend/controllers/IndexController.php on line 11" while reading response header from upstream, client: 84.38.16.66, server: xxxx.yy, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "xxxx.yy", referrer: "xxxx.yy"
我想让它简单一点,比如:

 PHP Notice:  Undefined offset: 3 in /var/www/movie/application/modules/frontend/controllers/IndexController.php

有什么想法吗?

如果你解释一下你是如何配置错误日志的……当你删除日期信息时,你怎么知道什么时候发生了错误?另外,您标记了这个nginx,那么我们讨论的是nginx日志还是php错误日志?您是对的,日期是必需的。我们讨论的是php的错误,但应用程序正在nginx上运行。@Amarnasan,我刚刚在php配置文件中设置了日志错误。就这些。