logger
This commit is contained in:
parent
d903ae3284
commit
42c37e780d
|
@ -21,8 +21,8 @@ class ClientServiceProvider extends ServiceProvider
|
|||
$config = config('rpc.client');
|
||||
$logger = new Logger('rpc-client-logger');
|
||||
$logger->pushHandler(new StreamHandler($this->app->storagePath()."/logs/rpc_client_".date("Ymd").".log"));
|
||||
$this->app->singleton('rpc', function () use ($config) {
|
||||
return new Client($config);
|
||||
$this->app->singleton('rpc', function () use ($config, $logger) {
|
||||
return new Client($config, $logger);
|
||||
});
|
||||
|
||||
foreach ($config as $k => $item) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user