Fixed logger
This commit is contained in:
parent
d11daad638
commit
679a8d097a
|
|
@ -85,7 +85,7 @@ return [
|
|||
* The Statistics Logger will, by default, handle the incoming statistics, store them
|
||||
* and then release them into the database on each interval defined below.
|
||||
*/
|
||||
'logger' => \BeyondCode\LaravelWebSockets\Statistics\Logger::class,
|
||||
'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class,
|
||||
|
||||
/*
|
||||
* Here you can specify the interval in seconds at which statistics should be logged.
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class StartWebSocketServer extends Command
|
|||
$browser = new Browser($this->loop, $connector);
|
||||
|
||||
app()->singleton(StatisticsLoggerInterface::class, function () use ($browser) {
|
||||
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger::class);
|
||||
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class);
|
||||
|
||||
return new $class(app(ChannelManager::class), $browser);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue