There is a limit on the maximum length that you can pass as the $message.
The default seem to be 1024 but can be changed by adjusting the value of the runtime configuration value of 'log_errors_max_len'.
More details here:
http://www.php.net/manual/en/errorfunc.configuration.php