Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 709 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 709 Bytes

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