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!