Re: [PHP] Is there a way to write to the php error log from a php script?
+1 for log4php. (http://logging.apache.org/log4php/index.html) I use it regularly and love it. Thanks, Vikash Kumar -- http://vika.sh On 23 October 2010 08:35, Tommy Pham wrote: > > -Original Message- > > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > > Sent: Friday, October 22, 2010 5:45 PM > > To: Daniel P. Brown > > Cc: PHP General > > Subject: Re: [PHP] Is there a way to write to the php error log from a > php > > script? > > > > > > On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: > > > > > On Fri, Oct 22, 2010 at 20:24, Tamara Temple > > > wrote: > > >> 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. > > > > 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). > > > > Or you could try this [1], it was ported from log4j. I used the log4j for > my java projects and I loved it. > > Regards, > Tommy > > [1] http://logging.apache.org/log4php/index.html > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
RE: [PHP] Is there a way to write to the php error log from a php script?
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Friday, October 22, 2010 5:45 PM > To: Daniel P. Brown > Cc: PHP General > Subject: Re: [PHP] Is there a way to write to the php error log from a php > script? > > > On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: > > > On Fri, Oct 22, 2010 at 20:24, Tamara Temple > > wrote: > >> 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. > > 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). > Or you could try this [1], it was ported from log4j. I used the log4j for my java projects and I loved it. Regards, Tommy [1] http://logging.apache.org/log4php/index.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is there a way to write to the php error log from a php script?
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: 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. 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). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is there a way to write to the php error log from a php script?
On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: > 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. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Is there a way to write to the php error log from a php script?
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php