add some log
This commit is contained in:
parent
2c96596e57
commit
bc9783b865
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user