예제 #1
0
 protected function setUp()
 {
     parent::setUp();
     $restore_logfile = OC_Config::getValue("logfile");
     $restore_logdateformat = OC_Config::getValue('logdateformat');
     OC_Config::setValue("logfile", OC_Config::getValue('datadirectory') . "/logtest");
     OC_Log_Owncloud::init();
 }
예제 #2
0
 protected function setUp()
 {
     parent::setUp();
     $config = \OC::$server->getConfig();
     $this->restore_logfile = $config->getSystemValue("logfile");
     $this->restore_logdateformat = $config->getSystemValue('logdateformat');
     $config->setSystemValue("logfile", $config->getSystemValue('datadirectory') . "/logtest");
     OC_Log_Owncloud::init();
 }