Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

About

A minimal header only C++ logger system

Resources

License

Releases

No releases published
You can’t perform that action at this time.