logstash
This commit is contained in:
parent
3eba9c8094
commit
24750ed0f1
|
@ -22,7 +22,7 @@ class ClientServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
$config = config('rpc.client');
|
$config = config('rpc.client');
|
||||||
$stream = new StreamHandler($this->app->storagePath()."/logs/rpc_monitor_".date("Ymd").".log");
|
$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 = new Logger('RPC.LOGGER');
|
||||||
$logger->pushHandler($stream);
|
$logger->pushHandler($stream);
|
||||||
$this->app->singleton('rpc', function () use ($config, $logger) {
|
$this->app->singleton('rpc', function () use ($config, $logger) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user