Fixed logger

This commit is contained in:
Alex Renoki 2020-08-13 14:40:19 +03:00
parent d11daad638
commit 679a8d097a
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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);
});