Created
April 15, 2012 10:55
-
-
Save silv3rm00n/2391906 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(12:39:24 IST) silv3r_m00n: if error_reporting is set to 0 , will 'log_errors' directive log anything or not ? | |
(12:41:44 IST) renic: TAS | |
(12:42:03 IST) GoogleGuy: silv3r_m00n, Of course not. | |
(12:42:35 IST) silv3r_m00n: renic: yes did , saw that if error_reporting = 0 then no error logging | |
(12:43:05 IST) GoogleGuy: silv3r_m00n, The error_reporting directive tells PHP's error handler what level of errors to report. If you tell it to report no errors at all it won't. Thus there will be nothing to log since it's not reporting any errors. | |
(12:43:24 IST) silv3r_m00n: GoogleGuy: read at few places "turn off error reporting on production , but log them to a file" so got confused , how to log without reporting | |
(12:44:09 IST) GoogleGuy: silv3r_m00n, They might be talking about display_errors. display_errors isn't error_reporting it's just whether or not PHP's error handler sends the error messages to STDOUT. | |
(12:44:21 IST) GoogleGuy: That's a separate directive that you should turn off in production of course. | |
(12:45:01 IST) silv3r_m00n: no , they said switch off display , and then turn off reporting , and then log to file | |
(12:45:07 IST) Zah_: GoogleGuy: Do you work at google or are you just very fond of googling things | |
(12:45:18 IST) Viper-7: silv3r_m00n: either you read that wrong, or they wrote it wrong | |
(12:45:19 IST) Edico [~Edico@unaffiliated/edico] entered the room. | |
(12:45:26 IST) silv3r_m00n: they wrote it wrong perhaps | |
(12:45:30 IST) GoogleGuy: silv3r_m00n, Well, that wouldn't make any sense. | |
(12:45:33 IST) Viper-7: turn off display errors, set error reporting to an appropriate value, then log to file | |
(12:45:45 IST) silv3r_m00n: Viper-7: that's what I have doing ever since |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment