client log config
This commit is contained in:
parent
b0d88bc2bf
commit
213b742c39
|
@ -4,7 +4,6 @@ namespace JsonRpc;
|
|||
|
||||
use GuzzleHttp\Exception\ServerException;
|
||||
use JsonRpc\Exception\RpcServerException;
|
||||
use JsonRpc\Logging\LogstashFormatter;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Logger;
|
||||
|
||||
|
@ -25,7 +24,7 @@ class Client
|
|||
$default = [
|
||||
'app' => '***',
|
||||
'log_path'=> "/logs/rpc_monitor_".date("Ymd").".log",
|
||||
'log_formatter' => 'LogstashFormatter',
|
||||
'log_formatter' => 'JsonRpc\Logging\LogstashFormatter',
|
||||
];
|
||||
$this->config = array_merge($default, $config);
|
||||
$stream = new StreamHandler(app()->storagePath().$this->config['log_path']);
|
||||
|
|
Loading…
Reference in New Issue
Block a user