aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/log_helper.h
diff options
context:
space:
mode:
authorthecharlesblake2017-11-11 11:36:27 +0000
committerthecharlesblake2017-11-11 11:37:10 +0000
commitbba8775ce7c63783303240470d4a4b8404c9498b (patch)
treea3f6e5dc405ecb4637eca6c54e1261b5630a058c /src/main/input-output/log_helper.h
parentMerge pull request #19 from thecharlesblake/canfield (diff)
downloadmetasol-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.h19
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