private function DeleteOldLogItems()
    {
        $days = SettingsProxy::Singleton()->Settings()->GetLogLifetime();
        $deleteBefore = Date::Now();
        $deleteBefore->AddDays(-$days);
        $tblLogItem = LogItem::Schema()->Table();
        $sql = Access::SqlBuilder();
        $where = $sql->LT($tblLogItem->Field('Changed'), $sql->Value($deleteBefore));
        LogItem::Schema()->Delete($where);
    }