領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
5.4KB

  1. <?php
  2. use Monolog\Handler\NullHandler;
  3. use Monolog\Handler\StreamHandler;
  4. use Monolog\Handler\SyslogUdpHandler;
  5. use Monolog\Processor\PsrLogMessageProcessor;
  6. return [
  7. /*
  8. |--------------------------------------------------------------------------
  9. | Default Log Channel
  10. |--------------------------------------------------------------------------
  11. |
  12. | This option defines the default log channel that gets used when writing
  13. | messages to the logs. The name specified in this option should match
  14. | one of the channels defined in the "channels" configuration array.
  15. |
  16. */
  17. 'default' => env('LOG_CHANNEL', 'web'),
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Deprecations Log Channel
  21. |--------------------------------------------------------------------------
  22. |
  23. | This option controls the log channel that should be used to log warnings
  24. | regarding deprecated PHP and library features. This allows you to get
  25. | your application ready for upcoming major versions of dependencies.
  26. |
  27. */
  28. 'deprecations' => [
  29. 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
  30. 'trace' => false,
  31. ],
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Log Channels
  35. |--------------------------------------------------------------------------
  36. |
  37. | Here you may configure the log channels for your application. Out of
  38. | the box, Laravel uses the Monolog PHP logging library. This gives
  39. | you a variety of powerful log handlers / formatters to utilize.
  40. |
  41. | Available Drivers: "single", "daily", "slack", "syslog",
  42. | "errorlog", "monolog",
  43. | "custom", "stack"
  44. |
  45. */
  46. 'channels' => [
  47. 'stack' => [
  48. 'driver' => 'stack',
  49. 'channels' => ['single'],
  50. 'ignore_exceptions' => false,
  51. ],
  52. 'single' => [
  53. 'driver' => 'single',
  54. 'path' => storage_path('logs/laravel.log'),
  55. 'level' => env('LOG_LEVEL', 'debug'),
  56. 'replace_placeholders' => true,
  57. ],
  58. 'daily' => [
  59. 'driver' => 'daily',
  60. 'path' => storage_path('logs/laravel.log'),
  61. 'level' => env('LOG_LEVEL', 'debug'),
  62. 'days' => 14,
  63. 'replace_placeholders' => true,
  64. ],
  65. 'slack' => [
  66. 'driver' => 'slack',
  67. 'url' => env('LOG_SLACK_WEBHOOK_URL'),
  68. 'username' => 'Laravel Log',
  69. 'emoji' => ':boom:',
  70. 'level' => env('LOG_LEVEL', 'critical'),
  71. 'replace_placeholders' => true,
  72. ],
  73. 'papertrail' => [
  74. 'driver' => 'monolog',
  75. 'level' => env('LOG_LEVEL', 'debug'),
  76. 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
  77. 'handler_with' => [
  78. 'host' => env('PAPERTRAIL_URL'),
  79. 'port' => env('PAPERTRAIL_PORT'),
  80. 'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
  81. ],
  82. 'processors' => [PsrLogMessageProcessor::class],
  83. ],
  84. 'stderr' => [
  85. 'driver' => 'monolog',
  86. 'level' => env('LOG_LEVEL', 'debug'),
  87. 'handler' => StreamHandler::class,
  88. 'formatter' => env('LOG_STDERR_FORMATTER'),
  89. 'with' => [
  90. 'stream' => 'php://stderr',
  91. ],
  92. 'processors' => [PsrLogMessageProcessor::class],
  93. ],
  94. 'syslog' => [
  95. 'driver' => 'syslog',
  96. 'level' => env('LOG_LEVEL', 'debug'),
  97. 'facility' => LOG_USER,
  98. 'replace_placeholders' => true,
  99. ],
  100. 'errorlog' => [
  101. 'driver' => 'errorlog',
  102. 'level' => env('LOG_LEVEL', 'debug'),
  103. 'replace_placeholders' => true,
  104. ],
  105. 'null' => [
  106. 'driver' => 'monolog',
  107. 'handler' => NullHandler::class,
  108. ],
  109. 'emergency' => [
  110. 'path' => storage_path('logs/laravel.log'),
  111. ],
  112. 'web' => [
  113. 'driver' => 'daily',
  114. 'path' => storage_path('logs/web.log'),
  115. 'level' => env('LOG_LEVEL', 'debug'),
  116. 'days' => 14,
  117. // 'replace_placeholders' => true,
  118. 'permission' => 0666,
  119. ],
  120. 'batch' => [
  121. 'driver' => 'daily',
  122. 'path' => storage_path('logs/batch.log'),
  123. 'level' => env('LOG_LEVEL', 'debug'),
  124. 'days' => 14,
  125. // 'replace_placeholders' => true,
  126. 'permission' => 0666,
  127. ],
  128. 'queue-email' => [
  129. 'driver' => 'daily',
  130. 'path' => storage_path('logs/email.log'),
  131. 'level' => env('LOG_LEVEL', 'debug'),
  132. 'days' => 14,
  133. // 'replace_placeholders' => true,
  134. 'permission' => 0666,
  135. ],
  136. 'queue-sms' => [
  137. 'driver' => 'daily',
  138. 'path' => storage_path('logs/sms.log'),
  139. 'level' => env('LOG_LEVEL', 'debug'),
  140. 'days' => 14,
  141. // 'replace_placeholders' => true,
  142. 'permission' => 0666,
  143. ],
  144. 'queue-job' => [
  145. 'driver' => 'daily',
  146. 'path' => storage_path('logs/job.log'),
  147. 'level' => env('LOG_LEVEL', 'debug'),
  148. 'days' => 14,
  149. // 'replace_placeholders' => true,
  150. 'permission' => 0666,
  151. ],
  152. ],
  153. ];