add some log

This commit is contained in:
dongwei 2019-01-11 18:22:25 +08:00
parent 2c96596e57
commit bc9783b865

View File

@ -46,6 +46,7 @@ class Client
]; ];
$this->config = array_merge($default, $config); $this->config = array_merge($default, $config);
$stream = new StreamHandler(app()->storagePath().$this->config['log_path']); $stream = new StreamHandler(app()->storagePath().$this->config['log_path']);
app('log')->info('test json-rpc config', $this->config);
$stream->setFormatter(new $this->config['log_formatter']()); $stream->setFormatter(new $this->config['log_formatter']());
$logger = new Logger('RPC.LOGGER'); $logger = new Logger('RPC.LOGGER');
$logger->pushHandler($stream); $logger->pushHandler($stream);