Development > Coding and development discussion

PHP Error Logging/Trouble shooting

(1/1)

Xenixa:
On another topic it came to light why I use a pause in my batch file. Then the little light over my head went on in the form of a question mark. "Why are you not logging errors for easier trouble shooting?" *smacks own forehead*

Anyway, changed my php.ini for Bebot v0.3.2
May I suggest we use this in future releases:
php.ini

--- Code: ---; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0
error_log = ./log/php_errors.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

memory_limit = 20M
extension_dir = ./php_extension/
--- End code ---

Would make it easier to troubleshoot problems and other users with questions that don't know how to fix could paste the relevant errors to us here on the forums from the log.

Khalem:
Duly noted and added to SVN for 0.3. Will add to 0.2.x later :)

Navigation

[0] Message Index

Go to full version