A C++ logger api with support to extensions.
Requires C++20.
Compiler | gcc | clang | msvc |
---|---|---|---|
Required | 11.1+ | 12.0.1+ | 19.29+ (VS16.10) |
#include <dig-logger/logger.hpp>
#include <dig-logger/printer/stdout.hpp>
⋮
DIG::Logger::Logger log(std::make_shared<DIG::Logger::Printer::StdOut>());
⋮
// Long names
log1.assert("Assert");
log.error("Error");
log.warning("Warning");
log.information("Information");
log.debug("Debug");
log.verbose("Verbose");
// Short names
log.e("Error");
log.w("Warning");
log.i("Information");
log.d("Debug");
log.v("Verbose");
Under construction
- You can use and re-dist freely.
- You can also modify, but only for yourself.
- You can use it as a part of your project, but without modifications in this project.