Merge branch 'main' of github.com:QuasarApp/QuasarAppLib

This commit is contained in:
Andrei Yankovich 2021-05-05 15:44:46 +03:00
commit 39d6d034b6
2 changed files with 10 additions and 10 deletions

View File

@ -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)) {

View File

@ -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"