-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·26 lines (20 loc) · 843 Bytes
/
main.cpp
File metadata and controls
executable file
·26 lines (20 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "influxwnd.h"
#include <QApplication>
#include "logger/QsLog.h"
#include "logger/QsLogDest.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// init the logging mechanism
QsLogging::Logger& logger = QsLogging::Logger::instance();
logger.setLoggingLevel(QsLogging::TraceLevel);
const QString sLogPath(QDir::homePath()+"/Influx/log.txt");
QsLogging::DestinationPtr fileDestination(QsLogging::DestinationFactory::MakeFileDestination(sLogPath));
QsLogging::DestinationPtr debugDestination(QsLogging::DestinationFactory::MakeDebugOutputDestination());
logger.addDestination(debugDestination.get());
logger.addDestination(fileDestination.get());
//logger.setLoggingLevel(QsLogging::InfoLevel);
InfluxWnd w;
w.show();
return a.exec();
}