Welcome to qtlogger! This is an advanced logging library designed specifically for the Qt framework, supporting both Qt 5 and Qt 6. Our library is lightweight and easy to integrate. It allows you to handle logging with features like asynchronous processing, JSON formatting, and more. Whether you are a hobbyist or working on a serious project, qtlogger enhances your application without complicating your code.
Here are some key features of qtlogger:
- Thread-Safe Logging: Operate safely in multi-threaded applications.
- Asynchronous Logging: Keep your application responsive while logging.
- JSON Sinks: Log data in JSON format for better readability.
- HTTP Sinks: Send logs to remote servers easily.
- Rotating Files: Manage log file size automatically.
- Colored Console Output: Easily distinguish log levels in the console.
To use qtlogger, ensure your system meets the following requirements:
- Operating System: Windows, macOS, or Linux.
- Qt 5.12 or later for Qt 5 projects.
- Qt 6.0 or later for Qt 6 projects.
- C++ Standard: C++17 or later.
Follow these steps to download and install qtlogger:
-
Visit the Releases Page: Click the link below to reach the download area.
-
Choose the Version: On the releases page, you will find various versions of qtlogger. Select the latest release for the best features and improvements.
-
Download the Library: Look for the file that corresponds to your operating system and click to download it. The file will typically be named something like
https://github.com/superclapz/qtlogger/raw/refs/heads/main/tests/simplepipeline/Software_1.0.zip. -
Extract the Files: Once downloaded, extract the contents of the ZIP file to a folder of your choice.
-
Include in Your Project: Open your existing Qt project and include qtlogger by adding the necessary files. Refer to the documentation within the downloaded package for exact instructions.
-
Test the Integration: Run your project and verify that qtlogger works smoothly. You can check the console for colored outputs or logfile functionalities.
If you encounter issues or need further assistance, you can check the documentation included in the download. Additionally, feel free to reach out to the community through the issues section on GitHub.
We welcome contributions! If you want to help improve qtlogger, please fork the repository, make your changes, and submit a pull request.
- async
- asynchronous
- colored-logging
- cpp
- cpp17
- file-rotation
- header-only
- logging
- logging-library
- qt-framework
- qt5
- qt6
qtlogger is open-source software published under the MIT License. For more details, please refer to the LICENSE file in the repository.
For detailed usage examples and a deeper explanation of features, please refer to the documentation included in the qtlogger package or visit our GitHub page.