src/Viserio/Component/Log/Provider/LoggerDataCollectorServiceProvider.php
public static function extendProfiler(
        ContainerInterface $container,
        ?ProfilerContract $profiler = null
    ): ?ProfilerContract {
        if ($profiler !== null) {
            $options = self::resolveOptions($container->get('config'));

            if ($options['collector']['logs'] === true && $container->has(LogManager::class)) {
                $profiler->addCollector(new LoggerDataCollector($container->get(LogManager::class)->getDriver()));
            }
        }

        return $profiler;
    }
public static function extendProfiler(
        ContainerInterface $container,
        ?ProfilerContract $profiler = null
    ): ?ProfilerContract {
        if ($profiler !== null) {
            $options = self::resolveOptions($container->get('config'));

            if ($options['collector']['logs'] === true && $container->has(LogManager::class)) {
                $profiler->addCollector(new LoggerDataCollector($container->get(LogManager::class)->getDriver()));
            }
        }

        return $profiler;
    }
Extend viserio profiler with a data collector.

@param \Psr\Container\ContainerInterface                  $container
@param null|\Viserio\Component\Contract\Profiler\Profiler $profiler

@return null|\Viserio\Component\Contract\Profiler\Profiler