note 96383 added to function.error-log
| From: | kevindougans at gmail dot com | Date: | Wed, 24 Feb 2010 10:19:13 +0000 |
| Subject: | note 96383 added to function.error-log | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166313@lists.php.net to get a copy of this message | ||
Advice to novices: This function works great along with "tail" which is a unix command to
watch a log file live. There are versions of Tail for Windows too, like Tail for Win32 or Kiwi Log
Viewer.
Using both error_log() and tail to view the php_error.log you can debug code without having to worry
so much about printing debug messages to the screen and who they might be seen by.
Further Note: This works even better when you have two monitors setup. One for your browser and IDE
and the other for viewing the log files update live as you go.
----
Server IP: 69.147.83.197
Probable Submitter: 212.159.89.118
----
Manual Page -- http://www.php.net/manual/en/function.error-log.php
Edit -- https://master.php.net/note/edit/96383
Del: integrated -- https://master.php.net/note/delete/96383/integrated
Del: useless -- https://master.php.net/note/delete/96383/useless
Del: bad code -- https://master.php.net/note/delete/96383/bad+code
Del: spam -- https://master.php.net/note/delete/96383/spam
Del: non-english -- https://master.php.net/note/delete/96383/non-english
Del: in docs -- https://master.php.net/note/delete/96383/in+docs
Del: other reasons-- https://master.php.net/note/delete/96383
Reject -- https://master.php.net/note/reject/96383
Search -- https://master.php.net/manage/user-notes.php