2024-06-21 15:56:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* This file is part of Hyperf.
|
|
|
|
*
|
|
|
|
* @link https://www.hyperf.io
|
|
|
|
* @document https://hyperf.wiki
|
|
|
|
* @contact group@hyperf.io
|
|
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
use Hyperf\Contract\StdoutLoggerInterface;
|
|
|
|
use Psr\Log\LogLevel;
|
|
|
|
|
|
|
|
use function Hyperf\Support\env;
|
|
|
|
|
|
|
|
return [
|
|
|
|
'app_name' => env('APP_NAME', 'skeleton'),
|
|
|
|
'app_env' => env('APP_ENV', 'dev'),
|
|
|
|
'scan_cacheable' => env('SCAN_CACHEABLE', false),
|
|
|
|
StdoutLoggerInterface::class => [
|
|
|
|
'log_level' => [
|
|
|
|
LogLevel::ALERT,
|
|
|
|
LogLevel::CRITICAL,
|
2024-06-21 16:01:34 +08:00
|
|
|
// LogLevel::DEBUG,
|
2024-06-21 15:56:37 +08:00
|
|
|
LogLevel::EMERGENCY,
|
|
|
|
LogLevel::ERROR,
|
|
|
|
LogLevel::INFO,
|
|
|
|
LogLevel::NOTICE,
|
|
|
|
LogLevel::WARNING,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|