add soom log

This commit is contained in:
dongwei 2019-01-11 16:18:27 +08:00
parent d237d10295
commit aa524dd865

View File

@ -24,7 +24,7 @@ class Client
$default = [ $default = [
'app' => '***', 'app' => '***',
'log_path'=> "/logs/rpc_monitor_".date("Ymd").".log", 'log_path'=> "/logs/rpc_monitor_".date("Ymd").".log",
'log_formatter' => JsonRpc\Logging\LogstashFormatter::class, 'log_formatter' => \JsonRpc\Logging\LogstashFormatter::class,
]; ];
$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']);