logging.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Log Channel
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option defines the default log channel that gets used when writing
  9. | messages to the logs. The name specified in this option should match
  10. | one of the channels defined in the "channels" configuration array.
  11. |
  12. */
  13. 'default' => env('LOG_CHANNEL', 'single'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Log Channels
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may configure the log channels for your application. Out of
  20. | the box, Laravel uses the Monolog PHP logging library. This gives
  21. | you a variety of powerful log handlers / formatters to utilize.
  22. |
  23. | Available Drivers: "single", "daily", "syslog",
  24. | "errorlog", "custom"
  25. |
  26. */
  27. 'channels' => [
  28. 'single' => [
  29. 'driver' => 'single',
  30. 'path' => storage_path('logs/laravel.log'),
  31. 'level' => 'debug',
  32. ],
  33. 'daily' => [
  34. 'driver' => 'daily',
  35. 'path' => storage_path('logs/laravel.log'),
  36. 'level' => 'debug',
  37. 'days' => 7,
  38. ],
  39. 'syslog' => [
  40. 'driver' => 'syslog',
  41. 'level' => 'debug',
  42. ],
  43. 'errorlog' => [
  44. 'driver' => 'errorlog',
  45. 'level' => 'debug',
  46. ],
  47. ],
  48. ];