Exceptions.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php namespace Config;
  2. use CodeIgniter\Config\BaseConfig;
  3. /**
  4. * Setup how the exception handler works.
  5. *
  6. * @package Config
  7. */
  8. class Exceptions extends BaseConfig
  9. {
  10. /*
  11. |--------------------------------------------------------------------------
  12. | LOG EXCEPTIONS?
  13. |--------------------------------------------------------------------------
  14. | If true, then exceptions will be logged
  15. | through Services::Log.
  16. |
  17. | Default: true
  18. */
  19. public $log = true;
  20. /*
  21. |--------------------------------------------------------------------------
  22. | DO NOT LOG STATUS CODES
  23. |--------------------------------------------------------------------------
  24. | Any status codes here will NOT be logged if logging is turned on.
  25. | By default, only 404 (Page Not Found) exceptions are ignored.
  26. */
  27. public $ignoreCodes = [ 404 ];
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Error Views Path
  31. |--------------------------------------------------------------------------
  32. | This is the path to the directory that contains the 'cli' and 'html'
  33. | directories that hold the views used to generate errors.
  34. |
  35. | Default: APPPATH.'Views/errors'
  36. */
  37. public $errorViewPath = APPPATH . 'Views/errors';
  38. }