original_string: public function runCronArchiving()
      {
          Piwik::checkUserHasSuperUserAccess();
  
          // HTTP request: logs needs to be dumped in the HTTP response (on top of existing log destinations)
          /** @var \Monolog\Logger $logger */
          $logger = StaticContainer::get('Psr\Log\LoggerInterface');
          $handler = new StreamHandler('php://output', Logger::INFO);
          $handler->setFormatter(StaticContainer::get('Piwik\Plugins\Monolog\Formatter\LineMessageFormatter'));
          $logger->pushHandler($handler);
  
          $archiver = new CronArchive();
          $archiver->main();
      }
code: public function runCronArchiving()
      {
          Piwik::checkUserHasSuperUserAccess();
  
          // HTTP request: logs needs to be dumped in the HTTP response (on top of existing log destinations)
          /** @var \Monolog\Logger $logger */
          $logger = StaticContainer::get('Psr\Log\LoggerInterface');
          $handler = new StreamHandler('php://output', Logger::INFO);
          $handler->setFormatter(StaticContainer::get('Piwik\Plugins\Monolog\Formatter\LineMessageFormatter'));
          $logger->pushHandler($handler);
  
          $archiver = new CronArchive();
          $archiver->main();
      }
code_tokens: public function runCronArchiving ( ) { Piwik :: checkUserHasSuperUserAccess ( ) ; // HTTP request: logs needs to be dumped in the HTTP response (on top of existing log destinations) /** @var \Monolog\Logger $logger */ $ logger = StaticContainer :: get ( 'Psr\Log\LoggerInterface' ) ; $ handler = new StreamHandler ( 'php://output' , Logger :: INFO ) ; $ handler -> setFormatter ( StaticContainer :: get ( 'Piwik\Plugins\Monolog\Formatter\LineMessageFormatter' ) ) ; $ logger -> pushHandler ( $ handler ) ; $ archiver = new CronArchive ( ) ; $ archiver -> main ( ) ; }
docstring: Initiates cron archiving via web request.
  
  @hideExceptForSuperUser
docstring_tokens: Initiates cron archiving via web request .