Logger is a lightweight C++ library for logging messages to various outputs with customizable log levels.
🔹 Multiple log levels: INFO, DEBUG, TRACE, WARNING and ERROR
🔹 Customize log format and output destination
🔹 Easy integration into existing C++ projects
- Include
Logger.h
in your C++ project. - Create an instance of the
Logger
class. - Use
<<
operator or any method to log messages at different levels.
#include "Logger.hpp"
int main() {
// Macro logging
LOGGER << "Default operation is ERROR";
Logger logger(__FILE__, __LINE__);
logger.Log(LogLevel::INFO, "This is an information message");
logger.Log(LogLevel::ERROR, "Oops! Something went wrong");
return 0;
}
This project is licensed under the MIT License - see the LICENSE file for details. Feel free to adjust it according to your preferences or add more details!