error.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. );