Page 1 of 1
How to organise log file system
Posted: Fri May 02, 2008 10:20 am
by highjo
Hi there .I'm in a middle of an application that does an API call with curl.I know i have to catch eventual errors to prevent users to see it and i'm thinking about how to make a log.The first things that comes to me is to send myself a email with every details but if anyone has better idea, please i'ld be glad to adopt it.My question should rather be How do you guys implement such a system?
Thanks
Re: How to organise log file system
Posted: Sat May 03, 2008 12:48 am
by Kieran Huggins
Sending yourself an email is a valid solution, but it could fill up your inbox quickly.
PHP can be configured to write errors to a file in the current directory, which is recommended in production mode. I don't remember what that setting is called though...
Re: How to organise log file system
Posted: Mon May 05, 2008 6:02 am
by highjo
Yeah i've figured out a way to send myself an email with the PEAR Mail package but don't know how to organise it to have necassary info.
Thanks for the answer bro