encfs/vendor/github.com/muflihun/easyloggingpp/samples/Qt/fast-dictionary/main.cc
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

21 lines
528 B
C++

#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();
}