mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 16:15:34 +08:00
add logging config (#127)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user