|
File based, custom logging
John Starkey
In my opinion, the best thing about working in the development phase is the liberty to throw
your errors to the browser, without too many worries of prying eyes. Once your project is live,
however, these errors can be very risky business and naturally they should be supressed. This
carries with it the disadvantage of complicating the debugging process if something goes wrong.
One great way to suppress these demons, without losing any valuable information, is to log your
errors to a private file on the server.
In this article I will show you a very basic way of logging to your own file using PHP's logging
functions. It is intended only as a start and by no means a complete thesis on logging as a whole.
I intend to continue the discussion in follow up articles as time allows, so please check back often.
[ Next Page ]
| Comments: | ||
| unable to write to a logger without refreshin | lavanya | 02/17/05 07:05 |
| And now the description is wrong. | Sex Beplaced Ru | 12/05/04 04:25 |
| Carlos | Carlos | 10/27/02 14:13 |
| RE: waste of time | Darren Casey | 10/18/02 17:51 |
| RE: waste of time | Vincent | 10/12/02 11:25 |
| RE: waste of time | BDKR | 10/10/02 10:22 |
| RE: waste of time | Steve | 10/10/02 10:10 |
| Great! | BDKR | 10/09/02 14:26 |
| How about syslog? | Kurt | 10/08/02 01:44 |
| waste of time | Jonathan | 10/07/02 13:41 |
| RE: unable to write file. | Adam | 10/03/02 11:08 |
| RE: unable to write file. | Jason | 10/02/02 08:56 |
| RE: unable to write file. | Jeremy Hilton | 10/02/02 03:28 |
| unable to write file. | Adam | 10/01/02 13:15 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


