encfs/vendor/github.com/muflihun/easyloggingpp/samples/Qt/fast-dictionary/main.cc

21 lines
528 B
C++
Raw Normal View History

#include "mainwindow.hh"
#include <QApplication>
#include "../../../src/easylogging++.h"
INITIALIZE_EASYLOGGINGPP
TIMED_SCOPE(app, "app");
int main(int argc, char *argv[])
{
START_EASYLOGGINGPP(argc, argv);
el::Loggers::reconfigureAllLoggers(el::ConfigurationType::Format, "%datetime{%H:%m:%s} [%level] %msg");
QApplication a(argc, argv);
MainWindow w;
w.show();
for (int i = 1; i <= 10; ++i) {
CLOG_EVERY_N(2, INFO, "default", "performance") << ELPP_COUNTER_POS;
}
return a.exec();
}