site v2 error logs

Error Logging Features:

  • Log script errors in a file on the server.
  • Use error_log() function.
  • The file will be different from the system log files.
  • The file name, location and content should not be available/accessible to others.
  • Email of each error should be sent to me.
  • Create a new file when the current one gets full.
  • Display an error to the browser screen if the error_log() function call fails.
  • Use the mail() function to send an email if the error_log() function call fails.
  • Give a hint in emails where I can find the error log file on the server to check all errors later.
  • Search for PHP classes which do error logging to learn about more features and find sample code.
Advertisements

About samehramzylabib

See About on https://samehramzylabib.wordpress.com
This entry was posted in Version 2.0 Site Design and tagged , , , . Bookmark the permalink.

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s