Releases: nircoe/logcoe
Releases · nircoe/logcoe
v0.1.1
logcoe v0.1.1
- Add [logcoe] prefix for logcoe related messages
- Change default time format to
%d/%m/%Y__%H:%M:%S - Change default LogLevel to DEBUG (and update the tests to match it)
- Update the documentation, make it shorter and cleaner
- Update testcoe version to v0.1.1 to fix errors
v0.1.0
logcoe v0.1.0 - Initial Release
Thread-safe C++ logging with real-time output and customizable formatting
Features
-
Thread-Safe Design - Mutex-protected concurrent logging from multiple threads
-
Multiple Log Levels - DEBUG, INFO, WARNING, ERROR with runtime filtering
-
Dual Output Support - Console and file output simultaneously or independently
-
Dynamic Configuration - Change log levels and output destinations at runtime
-
Customizable Formatting - strftime-compatible time formatting and source field support
-
Cross-Platform Support - Windows (MSVC, MinGW), Linux (GCC, Clang), macOS
-
Performance Optimized - Optional flushing control for high-frequency logging
-
Zero Dependencies - Pure C++17 implementation with header-only public API
Quick Start
include(FetchContent)
FetchContent_Declare(
logcoe
GIT_REPOSITORY https://github.com/nircoe/logcoe.git
GIT_TAG v0.1.0
)
FetchContent_MakeAvailable(logcoe)
target_link_libraries(your_target PRIVATE logcoe)#include <logcoe.hpp>
int main() {
logcoe::initialize(logcoe::LogLevel::INFO, "MyApp", true, true, "app.log");
logcoe::info("Application started");
logcoe::warning("This is a warning", "NetworkModule");
logcoe::error("Critical error occurred");
logcoe::shutdown();
return 0;
}What's Included
- Complete static library with clean public API
- Comprehensive test suite with thread safety validation
- Cross-platform CMake integration with FetchContent support
- Full compiler support: MSVC, GCC, Clang, and MinGW
See the README for full documentation and examples.