note 55598 added to function.error-log

From: Date: Mon, 08 Aug 2005 16:33:12 +0000
Subject: note 55598 added to function.error-log
Groups: php.notes 
Request: Send a blank email to php-notes+get-93253@lists.php.net to get a copy of this message
When outputting to syslog, it uses the syslog() function, which limits its output to 500 characters. We have been able to send multi-line output to the log, but newlines appear to be replaced with a space in the output, and output is cut off at 500 characters. A simple workaround for long, multi-line output is something like this: $errlines = explode("\n",$errmsg); foreach ($errlines as $txt) { error_log($txt); } ---- Manual Page -- http://www.php.net/manual/en/function.error-log.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55598 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55598&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55598&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93253) next »