/cpp-phantom-logger

A C++ macro based logger that hides itself from compilation when not in use.

Primary LanguageC

Phantom Logger

A macro based logging class that is completely removed from compilation when not in use and supports logging to both stdout and a file.

To use simply define either the _LOG_PRINT_ macro (to log to stdout) and/or the _LOG_FILE_ macro with a filename to log to.

I have defined several log types already and these can be removed and added to at will as needed. You may also define whether or not the printed output should go to the std::cout or std::cerr streams via the macro definition.