Advertisement
kustodian

php.ini logging section

Mar 28th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; Error handling and logging ;
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4.  
  5. ; error_reporting is a bit-field. Or each number up to get desired error
  6. ; reporting level
  7. ; E_ALL - All errors and warnings (doesn't include E_STRICT)
  8. ; E_ERROR - fatal run-time errors
  9. ; E_WARNING - run-time warnings (non-fatal errors)
  10. ; E_PARSE - compile-time parse errors
  11. ; E_NOTICE - run-time notices (these are warnings which often result
  12. ; from a bug in your code, but it's possible that it was
  13. ; intentional (e.g., using an uninitialized variable and
  14. ; relying on the fact it's automatically initialized to an
  15. ; empty string)
  16. ; E_STRICT - run-time notices, enable to have PHP suggest changes
  17. ; to your code which will ensure the best interoperability
  18. ; and forward compatibility of your code
  19. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  20. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
  21. ; initial startup
  22. ; E_COMPILE_ERROR - fatal compile-time errors
  23. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  24. ; E_USER_ERROR - user-generated error message
  25. ; E_USER_WARNING - user-generated warning message
  26. ; E_USER_NOTICE - user-generated notice message
  27. ;
  28. ; Examples:
  29. ;
  30. ; - Show all errors, except for notices and coding standards warnings
  31. ;
  32. ;error_reporting = E_ALL & ~E_NOTICE
  33. ;
  34. ; - Show all errors, except for notices
  35. ;
  36. ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
  37. ;
  38. ; - Show only errors
  39. ;
  40. ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
  41. ;
  42. ; - Show all errors, except coding standards warnings
  43. ;
  44. error_reporting = E_ALL
  45.  
  46. ; Print out errors (as a part of the output). For production web sites,
  47. ; you're strongly encouraged to turn this feature off, and use error logging
  48. ; instead (see below). Keeping display_errors enabled on a production web site
  49. ; may reveal security information to end users, such as file paths on your Web
  50. ; server, your database schema or other information.
  51. display_errors = Off
  52.  
  53. ; Even when display_errors is on, errors that occur during PHP's startup
  54. ; sequence are not displayed. It's strongly recommended to keep
  55. ; display_startup_errors off, except for when debugging.
  56. display_startup_errors = Off
  57.  
  58. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  59. ; As stated above, you're strongly advised to use error logging in place of
  60. ; error displaying on production web sites.
  61. log_errors = On
  62.  
  63. ; Set maximum length of log_errors. In error_log information about the source is
  64. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  65. log_errors_max_len = 1024
  66.  
  67. ; Do not log repeated messages. Repeated errors must occur in same file on same
  68. ; line until ignore_repeated_source is set true.
  69. ignore_repeated_errors = Off
  70.  
  71. ; Ignore source of message when ignoring repeated messages. When this setting
  72. ; is On you will not log errors with repeated messages from different files or
  73. ; sourcelines.
  74. ignore_repeated_source = Off
  75.  
  76. ; If this parameter is set to Off, then memory leaks will not be shown (on
  77. ; stdout or in the log). This has only effect in a debug compile, and if
  78. ; error reporting includes E_WARNING in the allowed list
  79. report_memleaks = On
  80.  
  81. ; Store the last error/warning message in $php_errormsg (boolean).
  82. track_errors = Off
  83.  
  84. ; Disable the inclusion of HTML tags in error messages.
  85. ; Note: Never use this feature for production boxes.
  86. ;html_errors = Off
  87.  
  88. ; If html_errors is set On PHP produces clickable error messages that direct
  89. ; to a page describing the error or function causing the error in detail.
  90. ; You can download a copy of the PHP manual from http://www.php.net/docs.php
  91. ; and change docref_root to the base URL of your local copy including the
  92. ; leading '/'. You must also specify the file extension being used including
  93. ; the dot.
  94. ; Note: Never use this feature for production boxes.
  95. ;docref_root = "/phpmanual/"
  96. ;docref_ext = .html
  97.  
  98. ; String to output before an error message.
  99. ;error_prepend_string = "<font color=ff0000>"
  100.  
  101. ; String to output after an error message.
  102. ;error_append_string = "</font>"
  103.  
  104. ; Log errors to specified file.
  105. ;error_log = filename
  106.  
  107. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
  108. ;error_log = syslog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement