Qv2ray/src/utils/QvTinyLog.hpp
Leroy.H.Y dfd7f87850 [VD][WIP] #130 Change to a new logo, new icon color schemes and added dark mode support (#131)
* [Update] icons: visual design

* [add] Added PNG for macOS

* [add] Added macOS icns

* [add] Added more icons and do some renamings, #130 this WILL BREAK the build.

* [fix] #130 fixed some ui settings

* [add] #130 Added more support for new ICONS

* [change] #130 #131 Changed MainWindow UI-Merging "ADDConfigBtn", fixed a ScreenShot window issue. Added message in Pref Window.

* [fix] Fixed layout of mainwindow

* [Windows] More UI Options

* [fix] Fixed a typo #130 #131


Former-commit-id: 727b907bcc
2019-11-18 18:38:42 +08:00

33 lines
795 B
C++

#ifndef QVTINYLOG_H
#define QVTINYLOG_H
#include <iostream>
#include <QtDebug>
using namespace std;
/*
* Tiny log module.
*/
#define LOG(module, msg) cout << "[" << module << "]: " << msg << endl;
#define XLOG(module, level, msg) LOG(module, level << msg)
#ifdef QT_DEBUG
#define DEBUG(module, msg) LOG("[DEBUG] - " module, msg)
#else
#define DEBUG(module, msg)
#endif
#define MODULE_INIT "INIT"
#define MODULE_UPDATE "UPDATE"
#define MODULE_VCORE "VCORE"
#define MODULE_CONFIG "CONFIG"
#define MODULE_UI "UI"
#define MODULE_NETWORK "NETWORK"
#define MODULE_FILE "FILE"
#define MODULE_SUBSCRIPTION "SUBSCRIPTION"
#define MODULE_CONNECTION "CONNECTION"
#define MODULE_IMPORT "IMPORT"
#define MODULE_CONNECTION_VMESS "CONNETION-VMESS"
#define MODULE_PLUGIN "PLUGIN"
#endif // QVTINYLOG_H