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) {