Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 11f5a3a7

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

  • ID 11f5a3a72cb304abda407dda57d9843e32ba42c0
  • Vorgänger 79bcb404
  • Nachfolger 5f3c7a9c

added missing license stuff

Unterschiede anzeigen:

src/entityinspector.cpp
/*
* Copyright (C) 2015 Christian Ehringfeld <c.ehringfeld@t-online.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "entityinspector.h"
#include <QDir>
#include <QDebug>
src/entityinspector.h
/*
* Copyright (C) 2015 Christian Ehringfeld <c.ehringfeld@t-online.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ENTITYINSPECTOR_H
#define ENTITYINSPECTOR_H
#include <QString>
src/logger.cpp
QString msg = "{" + QString("\"time\":\"") +
QDateTime::currentDateTime().toString(Qt::ISODate) + QString("\"") + errorMsg;
msg += this->generateLogMsg(q) + "}";
this->logMsg(msg);
this->logMsg(msg);
if (errorMsg.isEmpty()) {
qDebug() << msg.replace("\"", "'");
} else {
qWarning() << msg.replace("\"", "'");
}
}
}
}
......
}
}
void Logger::logMsg(const QString &value) {
QFile log(this->getPath());
log.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);

Auch abrufbar als: Unified diff