public function eraseAccessLog()
 {
     $log = new \Innomatic\Logging\Logger($this->mAccessLog);
     $log->cleanLog();
     return true;
 }
function action_cleanrootwebserviceslog($eventData)
{
    global $gPageStatus, $gLocale;
    $tempLog = new \Innomatic\Logging\Logger(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getHome() . 'core/log/webservices.log');
    if ($tempLog->cleanLog()) {
        $gPageStatus = $gLocale->getStr('logcleaned_status');
    } else {
        $gPageStatus = $gLocale->getStr('lognotcleaned_status');
    }
}
 public static function log_webservices_erase()
 {
     $log = new \Innomatic\Logging\Logger(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getHome() . 'core/log/webservices.log');
     return new \Innomatic\Webservices\Xmlrpc\XmlRpcResp(new \Innomatic\Webservices\Xmlrpc\XmlRpcVal($log->cleanLog()));
 }
function action_cleanmodlog($eventData)
{
    global $gLocale, $gLocale, $gStatus;
    $tempLog = new \Innomatic\Logging\Logger(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getHome() . 'core/applications/' . $eventData['appid'] . '/application.log');
    if ($tempLog->cleanLog()) {
        $gStatus = $gLocale->getStr('logcleaned_status');
    } else {
        $gStatus = $gLocale->getStr('lognotcleaned_status');
    }
}
 public function executeCleandataaccesslog($eventData)
 {
     $query = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getDataAccess()->execute('SELECT domainid FROM domains WHERE id=' . $eventData['domainid']);
     $tempLog = new \Innomatic\Logging\Logger(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getHome() . 'core/domains/' . $query->getFields('domainid') . '/log/dataaccess.log');
     if ($tempLog->cleanLog()) {
         $this->status = $this->localeCatalog->getStr('logcleaned_status');
     } else {
         $this->status = $this->localeCatalog->getStr('lognotcleaned_status');
     }
     $this->setChanged();
     $this->notifyObservers('status');
 }