Commit 7090c4de authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement logging

parent 482bab16
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#include "logcreatingressource.h" #include "logcreatingressource.h"
#include <QTemporaryFile> #include <QTemporaryFile>
#include <QTextStream>
#include <QDebug>
LogCreatingResource::LogCreatingResource(QObject *parent) LogCreatingResource::LogCreatingResource(QObject *parent)
: QObject(parent) : QObject(parent)
...@@ -44,5 +46,10 @@ QString LogCreatingResource::logPath() const ...@@ -44,5 +46,10 @@ QString LogCreatingResource::logPath() const
void LogCreatingResource::logCreateResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree) void LogCreatingResource::logCreateResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree)
{ {
// QTextStream stream(&mTmpLogFile);
// //stream << content; // content is a QString
// stream << resources << '\n';
// stream << name << '\n';
// stream << settings << '\n';
qDebug() << "settings "<< settings;
} }
...@@ -54,6 +54,7 @@ void ImportNotesJobInterfaceTestImpl::synchronizeResource(const QStringList &lst ...@@ -54,6 +54,7 @@ void ImportNotesJobInterfaceTestImpl::synchronizeResource(const QStringList &lst
{ {
//TODO log it! //TODO log it!
qDebug() << " void ImportNotesJobInterfaceTestImpl::synchronizeResource(const QStringList &lst) TODO IMPLEMENT" << lst; qDebug() << " void ImportNotesJobInterfaceTestImpl::synchronizeResource(const QStringList &lst) TODO IMPLEMENT" << lst;
mLogCreateResource->appendText(lst.join(QLatin1Char('\n')));
slotNextStep(); slotNextStep();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment