This commit is contained in:
dongwei 2019-01-10 15:36:10 +08:00
parent 3eba9c8094
commit 24750ed0f1

View File

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