From 24750ed0f1c463fb7342f757565652975858ff33 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Thu, 10 Jan 2019 15:36:10 +0800 Subject: [PATCH] logstash --- src/Providers/ClientServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/ClientServiceProvider.php b/src/Providers/ClientServiceProvider.php index 5838110..a2b52c9 100644 --- a/src/Providers/ClientServiceProvider.php +++ b/src/Providers/ClientServiceProvider.php @@ -22,7 +22,7 @@ class ClientServiceProvider extends ServiceProvider $config = config('rpc.client'); $stream = new StreamHandler($this->app->storagePath()."/logs/rpc_monitor_".date("Ymd").".log"); - $stream->setFormatter(LogstashFormatter::class); + $stream->setFormatter(new LogstashFormatter()); $logger = new Logger('RPC.LOGGER'); $logger->pushHandler($stream); $this->app->singleton('rpc', function () use ($config, $logger) {