Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cleversoap/cpp-phantom-logger
A C++ macro based logger that hides itself from compilation when not in use.
https://github.com/cleversoap/cpp-phantom-logger
Last synced: 16 days ago
JSON representation
A C++ macro based logger that hides itself from compilation when not in use.
- Host: GitHub
- URL: https://github.com/cleversoap/cpp-phantom-logger
- Owner: cleversoap
- Created: 2012-11-15T16:10:21.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T01:34:31.000Z (about 11 years ago)
- Last Synced: 2024-07-31T22:58:46.620Z (3 months ago)
- Language: C
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.