// Add a buton to erase all log

This commit is contained in:
Rémi Gaillard
2013-09-05 15:58:36 +02:00
parent 6e5fb47642
commit 0f81518ba2
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -149,6 +149,11 @@ class LoggerCore extends ObjectModel
return $this->hash;
}
public static function eraseAllLogs()
{
return Db::getInstance()->execute('TRUNCATE TABLE '._DB_PREFIX_.'log');
}
/**
* check if this log message already exists in database.