note 55598 deleted from function.error-log by thiago

From: Date: Tue, 18 Nov 2008 14:57:38 +0000
Subject: note 55598 deleted from function.error-log by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146645@lists.php.net to get a copy of this message
Note Submitter: mac at codegreene dot com ---- 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); }

« previous php.notes (#146645) next »