update
This commit is contained in:
5
config/autoload/crontab.php
Normal file
5
config/autoload/crontab.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
return [
|
||||
// 是否开启定时任务
|
||||
'enable' => true,
|
||||
];
|
@ -44,4 +44,21 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
'command-baidu-record' => [
|
||||
'handler' => [
|
||||
'class' => Monolog\Handler\RotatingFileHandler::class,
|
||||
'constructor' => [
|
||||
'filename' => BASE_PATH . '/runtime/logs/hyperf.log',
|
||||
'level' => Monolog\Level::Debug,
|
||||
],
|
||||
],
|
||||
'formatter' => [
|
||||
'class' => Monolog\Formatter\LineFormatter::class,
|
||||
'constructor' => [
|
||||
'format' => null,
|
||||
'dateFormat' => 'Y-m-d H:i:s',
|
||||
'allowInlineLineBreaks' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@ -10,4 +10,5 @@ declare(strict_types=1);
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
return [
|
||||
Hyperf\Crontab\Process\CrontabDispatcherProcess::class,
|
||||
];
|
||||
|
Reference in New Issue
Block a user