From 213b742c393b6219253b22fa911e7f58744e0576 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Fri, 11 Jan 2019 15:30:28 +0800 Subject: [PATCH] client log config --- src/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 1626643..e61d8fc 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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']);