Add php error logging snippets