diff options
| author | thecharlesblake | 2017-11-11 11:36:27 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-11 11:37:10 +0000 |
| commit | bba8775ce7c63783303240470d4a4b8404c9498b (patch) | |
| tree | a3f6e5dc405ecb4637eca6c54e1261b5630a058c /src/main/input-output/log_helper.h | |
| parent | Merge pull request #19 from thecharlesblake/canfield (diff) | |
| download | metasol-bba8775ce7c63783303240470d4a4b8404c9498b.tar.gz metasol-bba8775ce7c63783303240470d4a4b8404c9498b.zip | |
Add src file directory structure
Diffstat (limited to 'src/main/input-output/log_helper.h')
| -rw-r--r-- | src/main/input-output/log_helper.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/input-output/log_helper.h b/src/main/input-output/log_helper.h new file mode 100644 index 0000000..889a5ae --- /dev/null +++ b/src/main/input-output/log_helper.h @@ -0,0 +1,19 @@ +// +// Created by thecharlesblake on 10/16/17. +// + +#ifndef SOLVITAIRE_LOG_HELPER_H +#define SOLVITAIRE_LOG_HELPER_H + +#include <iostream> + +#if defined NDEBUG + #define LOG_DEBUG +#else + #define LOG_DEBUG(msg) clog << "[debug]\n" << msg +#endif +#define LOG_INFO(msg) clog << "[info]\n" << msg +#define LOG_WARNING(msg) clog << "[warning]\n" << msg +#define LOG_ERROR(msg) cerr << "[error]\n" << msg + +#endif //SOLVITAIRE_LOG_HELPER_H |
