37 lines
715 B
C++
Executable File
37 lines
715 B
C++
Executable File
/*
|
|
* @RDE_HEADER@
|
|
* <short description>
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Malte Schröder, SLSE, 2016-07-14
|
|
*/
|
|
|
|
#include "mainwindow.h"
|
|
#include <NGLLogger/INGLLogger.h>
|
|
#include <nglapplication/nglapplication.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
NGLApplication app(argc, argv);
|
|
QCoreApplication::setApplicationName(QLatin1String("LogViewer"));
|
|
QCoreApplication::setOrganizationName(QLatin1String("RME"));
|
|
|
|
app.createLogger("LogViewer", "log4cxx_logviewer.props");
|
|
NGL::INGLLogger &logger = app.baseLogger();
|
|
|
|
STARTUP_LOG(logger);
|
|
|
|
MainWindow w;
|
|
w.init();
|
|
w.show();
|
|
|
|
app.setQuitOnLastWindowClosed(true);
|
|
|
|
int retval = app.exec();
|
|
|
|
SHUTDOWN_LOG(logger);
|
|
|
|
return retval;
|
|
}
|