Version: 1.2.0
This is a simple C++
logger that can be used to log messages to the console or to a file.
- Debug, Info, Warning, Error and Fatal log levels
- Add the
Logger
submodule to your project
git submodule add https://github.com/Zarox28/Logger.git libs/Logger
- Initialize the submodule & update it
git submodule update --init --recursive
- Include the
Logger
header file in your project
#include "libs/Logger/Logger.h"
Note: The
Logger
submodule is located in thelibs
directory of your project.
Tip: You can also add
using namespace Logger;
to your project to avoid having to typeLogger::
before every log level.
Logger::init();
Logger::reset();
Logger::debug("This is a debug message");
Logger::info("This is an info message");
Logger::success("This is a success message");
Logger::warn("This is a warning message");
Logger::error("This is an error message");
Logger::fatal("This is a fatal message");
see CHANGELOG.md for latest changes.
Contributing is disabled for this repository.
This project is licensed under the AGPL v3 License - see the LICENSE file for details.