Re: Is there a way to write to the php error log from a php script?
| From: | Tamara Temple | Date: | Sat, 23 Oct 2010 00:45:23 +0000 |
| Subject: | Re: Is there a way to write to the php error log from a php script? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309028@lists.php.net to get a copy of this message | ||
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote:
On Fri, Oct 22, 2010 at 20:24, Tamara Temple <tamouse.lists@gmail.com> wrote:Ah, yes, error_log() is precisely what I'm looking for. Seaching for "log" gave me the log function, searching for "logging" gave me a bunch of references I couldn't follow (for some reason the feeds want to open in my Mail.app client and create RSS feeds -- less than useful).I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've searched the web site for logging functions, but cannot find any.Sure. You can use trigger_error() and error_log() for that.