mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-27 10:14:38 +00:00
Merge branch 'main' of github.com:QuasarApp/QuasarAppLib
This commit is contained in:
commit
39d6d034b6
@ -32,7 +32,7 @@ This lib include include next modules:
|
||||
>> add_subdirectory(QuasarAppLib)
|
||||
* Rebuild yuor project
|
||||
|
||||
``` cmake
|
||||
```cmake
|
||||
add_subdirectory(QuasarAppLib)
|
||||
target_link_libraries(MyBinary PUBLIC QuasarApp)
|
||||
```
|
||||
@ -41,7 +41,7 @@ target_link_libraries(MyBinary PUBLIC QuasarApp)
|
||||
By Default QuasarAppLib makes as a static library. If you want to create a shared library just add the BUILD_SHARED_LIBS into your main CMakeLists.txt file.
|
||||
Example :
|
||||
|
||||
``` cmake
|
||||
```cmake
|
||||
set(BUILD_SHARED_LIBS ON)
|
||||
add_subdirectory(QuasarAppLib)
|
||||
target_link_libraries(MyBinary PUBLIC QuasarApp)
|
||||
@ -51,7 +51,7 @@ target_link_libraries(MyBinary PUBLIC QuasarApp)
|
||||
# Usage
|
||||
Create objects of the BigInt class, and do what you got to do!
|
||||
|
||||
``` cpp
|
||||
```cpp
|
||||
#include <quasarapp.h>
|
||||
|
||||
if (!QuasarAppUtils::Params::parseParams(argc, argv)) {
|
||||
|
14
params.h
14
params.h
@ -19,19 +19,19 @@ namespace QuasarAppUtils {
|
||||
* @brief The VerboseLvl enum uses for sets log level.
|
||||
*/
|
||||
enum VerboseLvl {
|
||||
/// General information. This logs will marked as a **Info** and printing always.
|
||||
Info = 0x0,
|
||||
/// Error message. This logs will marked as a **Error** and printing if the verbose lvl >= 1
|
||||
Error = 0x1,
|
||||
/// Warning message. This logs will marked as a **Warning** and printing if the verbose lvl >= 2
|
||||
Warning = 0x2,
|
||||
/// Error message. This logs will marked as a **Error** and printing if the verbose lvl >= 0
|
||||
Error = 0x0,
|
||||
/// Warning message. This logs will marked as a **Warning** and printing if the verbose lvl >= 1
|
||||
Warning = 0x1,
|
||||
/// General information. This logs will marked as a **Info** and and printing if the verbose lvl >= 2.
|
||||
Info = 0x2,
|
||||
/// Debug message. This logs will marked as a **Debug** and printing if the verbose lvl >= 3
|
||||
Debug = 0x3,
|
||||
|
||||
};
|
||||
|
||||
#ifdef RELEASE_BUILD
|
||||
#define DEFAULT_VERBOSE_LVL "1"
|
||||
#define DEFAULT_VERBOSE_LVL "2"
|
||||
|
||||
#else
|
||||
#define DEFAULT_VERBOSE_LVL "3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user