Beispiel #1
0
 /**
  * Returns a list of all configured log readers that are supported (available).
  *
  * @return string[]
  */
 public function getConfiguredLogReaders()
 {
     Piwik::checkUserHasSuperUserAccess();
     $logReaderFactory = new LogReaderFactory();
     return $logReaderFactory->getConfiguredLogReaders();
 }
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage No source specified, please specify one of: file, database
  */
 public function test_make_shouldThrowException_IfNoSourceSpecified_AndManyWritersConfigured()
 {
     $this->setLogWriters(array('file', 'database'));
     $this->factory->make(false);
 }