Skip to content

Neptunium931/nlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nlogger

nlogger is a logging library for logging in c++.

Requirements

  • C++23

Examples

Hello World

#include <nlogger/nlogger.hpp>

using namespace Neptunium931;

int main() {
    auto logger = Nlogger;
    logger.info("Hello, world!");
    return 0;
}

SetLogLevel

#include <nlogger/nlogger.hpp>

using namespace Neptunium931;

int main() {
    auto logger = Nlogger;
    logger.setLogLevel(Nlogger::LogLevel::Error); // define log level
    logger.info("Hello, world!"); // will not be printed
    logger.error("Hello, world!"); // will be printed
    return 0;
}

About

nlogger is a logging library for c++.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors