Skip to content

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

Notifications You must be signed in to change notification settings

cleversoap/cpp-phantom-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages