code: protected function registerLogFactory()
      {
          $this->app->singleton('logviewer.factory', function ($app) {
              $filesystem = $app['logviewer.filesystem'];
              $levels = $app['logviewer.data']->levels();
  
              return new Factory($filesystem, $levels);
          });
  
          $this->app->alias('logviewer.factory', Factory::class);
      }
docs: Register the log factory class.
  
  @return void