config.php 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. use Hyperf\Contract\StdoutLoggerInterface;
  12. use Psr\Log\LogLevel;
  13. use function Hyperf\Support\env;
  14. return [
  15. 'app_name' => env('APP_NAME', 'skeleton'),
  16. 'app_env' => env('APP_ENV', 'dev'),
  17. 'app_debug' => (bool)env('APP_DEBUG', false),
  18. 'app_url' => env('APP_URL', 'http://127.0.0.1'),
  19. 'cdn_url' => env('CDN_URL', ''),
  20. 'scan_cacheable' => env('SCAN_CACHEABLE', false),
  21. StdoutLoggerInterface::class => [
  22. 'log_level' => [
  23. LogLevel::ALERT,
  24. LogLevel::CRITICAL,
  25. LogLevel::DEBUG,
  26. LogLevel::EMERGENCY,
  27. LogLevel::ERROR,
  28. LogLevel::INFO,
  29. LogLevel::NOTICE,
  30. LogLevel::WARNING,
  31. ],
  32. ],
  33. ];