領収証発行サービス
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.

180 line
5.6KB

  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. 'app' => [
  53. 'driver' => 'stack',
  54. 'channels' => ['web', 'slack'],
  55. 'ignore_exceptions' => false,
  56. ],
  57. 'single' => [
  58. 'driver' => 'single',
  59. 'path' => storage_path('logs/laravel.log'),
  60. 'level' => env('LOG_LEVEL', 'debug'),
  61. 'replace_placeholders' => true,
  62. ],
  63. 'daily' => [
  64. 'driver' => 'daily',
  65. 'path' => storage_path('logs/laravel.log'),
  66. 'level' => env('LOG_LEVEL', 'debug'),
  67. 'days' => 14,
  68. 'replace_placeholders' => true,
  69. ],
  70. 'slack' => [
  71. 'driver' => 'slack',
  72. 'url' => env('LOG_SLACK_WEBHOOK_URL'),
  73. 'username' => 'Laravel Log',
  74. 'emoji' => ':boom:',
  75. 'level' => 'error',
  76. 'replace_placeholders' => true,
  77. ],
  78. 'papertrail' => [
  79. 'driver' => 'monolog',
  80. 'level' => env('LOG_LEVEL', 'debug'),
  81. 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
  82. 'handler_with' => [
  83. 'host' => env('PAPERTRAIL_URL'),
  84. 'port' => env('PAPERTRAIL_PORT'),
  85. 'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
  86. ],
  87. 'processors' => [PsrLogMessageProcessor::class],
  88. ],
  89. 'stderr' => [
  90. 'driver' => 'monolog',
  91. 'level' => env('LOG_LEVEL', 'debug'),
  92. 'handler' => StreamHandler::class,
  93. 'formatter' => env('LOG_STDERR_FORMATTER'),
  94. 'with' => [
  95. 'stream' => 'php://stderr',
  96. ],
  97. 'processors' => [PsrLogMessageProcessor::class],
  98. ],
  99. 'syslog' => [
  100. 'driver' => 'syslog',
  101. 'level' => env('LOG_LEVEL', 'debug'),
  102. 'facility' => LOG_USER,
  103. 'replace_placeholders' => true,
  104. ],
  105. 'errorlog' => [
  106. 'driver' => 'errorlog',
  107. 'level' => env('LOG_LEVEL', 'debug'),
  108. 'replace_placeholders' => true,
  109. ],
  110. 'null' => [
  111. 'driver' => 'monolog',
  112. 'handler' => NullHandler::class,
  113. ],
  114. 'emergency' => [
  115. 'path' => storage_path('logs/laravel.log'),
  116. ],
  117. 'web' => [
  118. 'driver' => 'daily',
  119. 'path' => storage_path('logs/web.log'),
  120. 'level' => env('LOG_LEVEL', 'debug'),
  121. 'days' => 14,
  122. // 'replace_placeholders' => true,
  123. 'permission' => 0666,
  124. ],
  125. 'batch' => [
  126. 'driver' => 'daily',
  127. 'path' => storage_path('logs/batch.log'),
  128. 'level' => env('LOG_LEVEL', 'debug'),
  129. 'days' => 14,
  130. // 'replace_placeholders' => true,
  131. 'permission' => 0666,
  132. ],
  133. 'queue-email' => [
  134. 'driver' => 'daily',
  135. 'path' => storage_path('logs/email.log'),
  136. 'level' => env('LOG_LEVEL', 'debug'),
  137. 'days' => 14,
  138. // 'replace_placeholders' => true,
  139. 'permission' => 0666,
  140. ],
  141. 'queue-sms' => [
  142. 'driver' => 'daily',
  143. 'path' => storage_path('logs/sms.log'),
  144. 'level' => env('LOG_LEVEL', 'debug'),
  145. 'days' => 14,
  146. // 'replace_placeholders' => true,
  147. 'permission' => 0666,
  148. ],
  149. 'queue-job' => [
  150. 'driver' => 'daily',
  151. 'path' => storage_path('logs/job.log'),
  152. 'level' => env('LOG_LEVEL', 'debug'),
  153. 'days' => 14,
  154. // 'replace_placeholders' => true,
  155. 'permission' => 0666,
  156. ],
  157. ],
  158. ];