Skip to content
Snippets Groups Projects
Commit 8f6179b5 authored by littletux89@gmail.com's avatar littletux89@gmail.com
Browse files

[+] Logger added.

parent 89bfc979
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
#include "DapSettingsCipher.h"
#include "DapServiceClient.h"
#include "DapServiceController.h"
#include "DapLogger.h"
int main(int argc, char *argv[])
{
......@@ -26,6 +27,13 @@ int main(int argc, char *argv[])
app.setApplicationName("Kelvin Client");
app.setWindowIcon(QIcon(":/Resources/Icons/icon.ico"));
DapLogger dapLogger;
//#ifndef QT_DEBUG
#ifdef Q_OS_LINUX
dapLogger.setLogFile(QString("/opt/%1/log/%2Gui.log").arg(QString(DAP_BRAND)).arg(DAP_BRAND));
#endif
//#endif
/// Local client.
DapServiceClient dapServiceClient;
// Creating a service controller
......
......@@ -4,6 +4,7 @@
#include "DapHalper.h"
#include "DapChainDashboardService.h"
#include "DapLogger.h"
int main(int argc, char *argv[])
{
......@@ -26,6 +27,13 @@ int main(int argc, char *argv[])
a.setOrganizationDomain("demlabs.com");
a.setApplicationName("KelvinDashboardService");
DapLogger dapLogger;
//#ifndef QT_DEBUG
#ifdef Q_OS_LINUX
dapLogger.setLogFile(QString("/opt/%1/log/%2Service.log").arg(QString(DAP_BRAND)).arg(DAP_BRAND));
#endif
//#endif
// Creating the main application object
DapChainDashboardService service;
service.start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment