aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/output
diff options
context:
space:
mode:
authorthecharlesblake2018-01-03 13:05:31 +0000
committerthecharlesblake2018-01-03 13:05:31 +0000
commit7f4712b292632becfc83bc0e887271b25fefd21a (patch)
tree0dd0201057886c7fda86a53b447cce5d04948d25 /src/main/input-output/output
parentTidy up card class (diff)
downloadmetasol-7f4712b292632becfc83bc0e887271b25fefd21a.tar.gz
metasol-7f4712b292632becfc83bc0e887271b25fefd21a.zip

Refactor io dir structure

Diffstat (limited to 'src/main/input-output/output')
-rw-r--r--src/main/input-output/output/log_helper.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/input-output/output/log_helper.h b/src/main/input-output/output/log_helper.h
new file mode 100644
index 0000000..71cc5f4
--- /dev/null
+++ b/src/main/input-output/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(msg)
+#else
+ #define LOG_DEBUG(msg) clog << "[debug]\n" << msg << "\n"
+#endif
+#define LOG_INFO(msg) clog << "[info] " << msg << "\n"
+#define LOG_WARNING clog(msg) << "[warning] " << msg << "\n"
+#define LOG_ERROR(msg) cerr << "[ERROR] " << msg << "\n"
+
+#endif //SOLVITAIRE_LOG_HELPER_H