https://github.com/saeidemadi/simple_logger
simple qt logger for log QDebug outputs
https://github.com/saeidemadi/simple_logger
cpp debug debugging log logger qdebug qt qt6
Last synced: 4 months ago
JSON representation
simple qt logger for log QDebug outputs
- Host: GitHub
- URL: https://github.com/saeidemadi/simple_logger
- Owner: saeidEmadi
- License: gpl-2.0
- Created: 2024-08-28T06:06:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T06:59:51.000Z (almost 2 years ago)
- Last Synced: 2025-02-02T02:42:00.737Z (over 1 year ago)
- Topics: cpp, debug, debugging, log, logger, qdebug, qt, qt6
- Language: C++
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qt Simple logger
This is a ready-made code to facilitate logging Qt Applications outputs (with QDebug)
## Installation
- copy Logger folder in your code path
- Add the `Logger.pri` file to the `*.pro` file in your project
```cpp
include($$PWD/Logger/Logger.pri)
```
- Add Logger Header in `main.cpp` ***(Application Entery Point)***
```cpp
#include "Logger.h"
```
## Usage
- Add the configuration codes in the main file ***e.g*** `main.cpp` ***(Application Entery Point)***
```cpp
Logger::attach();
Logger::logging = true;
```
> [!NOTE]
>You can see where the log is stored by printing `Logger::logFileName`
------------
### Enjoy it :)