A minimal header only C++ logger system
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
minilog.h

README.md

minilog

A minimal header only C++ logger system

Minimal Documentation

Currently MINILOG only logs to STDERR, however all is in place to log to files.

Usage in your C++ project:

#include "minilog.h"

Somewhere, typically in main(), add:

MiniLog::current_level() = logINFO;        // set debug level to INFO

Log anywhere

MINILOG(logDEBUG) << "DEBUG Log message";  // log at debug level
MINILOG(logINFO) << "INFO Log message";    // log at info level

Would yield:

16:20:33.130 INFO: INFO Log message        // show only info level
                                           // output, since DEBUG >
                                           // INFO