add logging config (#127)

This commit is contained in:
sunxyw
2022-05-16 23:28:02 +08:00
committed by GitHub
parent 87bbffefc3
commit 5cbeee6e86
3 changed files with 34 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ namespace ZM\Event\SwooleEvent;
use Error;
use Exception;
use PDO;
use Psr\Log\LoggerInterface;
use ReflectionException;
use Swoole\Coroutine;
use Swoole\Database\PDOConfig;
@@ -316,6 +317,8 @@ class OnWorkerStart implements SwooleEvent
$container->instance('worker_id', $server->worker_id);
$container->singleton(AdapterInterface::class, OneBot11Adapter::class);
$container->singleton(LoggerInterface::class, ZMConfig::get('logging.logger'));
}
private function gatherWorkerStartStatus()