error.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Ignored Error Levels
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you simply specify the error levels that should be ignored by the
  9. | Laravel error handler. These levels will still be logged; however, no
  10. | information about about them will be displayed.
  11. |
  12. */
  13. 'ignore' => array(),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Error Detail
  17. |--------------------------------------------------------------------------
  18. |
  19. | Detailed error messages contain information about the file in which an
  20. | error occurs, as well as a PHP stack trace containing the call stack.
  21. | You'll want them when you're trying to debug your application.
  22. |
  23. | If your application is in production, you'll want to turn off the error
  24. | details for enhanced security and user experience since the exception
  25. | stack trace could contain sensitive information.
  26. |
  27. */
  28. 'detail' => true,
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Error Logging
  32. |--------------------------------------------------------------------------
  33. |
  34. | When error logging is enabled, the "logger" Closure defined below will
  35. | be called for every error in your application. You are free to log the
  36. | errors however you want. Enjoy the flexibility.
  37. |
  38. */
  39. 'log' => false,
  40. /*
  41. |--------------------------------------------------------------------------
  42. | Error Logger
  43. |--------------------------------------------------------------------------
  44. |
  45. | Because of the various ways of managing error logging, you get complete
  46. | flexibility to manage error logging as you see fit. This function will
  47. | be called anytime an error occurs within your application and error
  48. | logging is enabled.
  49. |
  50. | You may log the error message however you like; however, a simple log
  51. | solution has been setup for you which will log all error messages to
  52. | text files within the application storage directory.
  53. |
  54. */
  55. 'logger' => function($exception)
  56. {
  57. Log::exception($exception);
  58. },
  59. /*
  60. |--------------------------------------------------------------------------
  61. | PHP INI Display Errors Setting
  62. |--------------------------------------------------------------------------
  63. |
  64. | Here you may specify the display_errors setting of the PHP.ini file.
  65. | Typically you may keep this "Off", as Laravel will cleanly handle
  66. | the display of all errors.
  67. |
  68. | However, if you encounter an infamous white screen of death scenario,
  69. | turning this "On" may help you solve the problem by getting the
  70. | real error message being thrown by the application.
  71. |
  72. */
  73. 'display' => 'Off',
  74. );