Skip to content

dominikschnitzer/minilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published