Skip to content

bramtechs/woof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

woof

Tiny C++ logging library using streams.

Example usage

struct Point
{
    int x, y;
};

std::ostream& operator<<(std::ostream& os, const Point& p)
{
    return os << "Point(" << p.x << ", " << p.y << ")";
}

woof::setPrefix("woof");
woof::log("log message", 10, "hello world");
woof::info("info message", 0.5);
woof::warn("warning message", Point { 10, 5 });
woof::error("error message", false);
WOOF_DEBUG("debug message", "only compiled in debug mode");

output:

woof: log message 10 hello world
woof info: info message 0.5
woof warn: warning message Point(10, 5)
woof error: error message 0
woof debug: debug message only compiled in debug mode

About

Tiny C++ logging library using streams.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published