aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorthecharlesblake2017-10-11 11:00:50 +0100
committerthecharlesblake2017-10-13 18:46:14 +0100
commita70e9a857ece06da65d7ce7c6d271dcd39968d55 (patch)
tree3504dcb74903efb669e4955002c1422c2417c68b /src/main
parentChange project name to Solvitaire (diff)
downloadmetasol-a70e9a857ece06da65d7ce7c6d271dcd39968d55.tar.gz
metasol-a70e9a857ece06da65d7ce7c6d271dcd39968d55.zip

Add basic logging to project

Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 0c9e38a..54bc493 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -1,9 +1,19 @@
#include <string>
#include <iostream>
#include <boost/foreach.hpp>
+#include <boost/log/trivial.hpp>
+
+namespace logging = boost::log;
int main()
{
+
+#ifndef NDEBUG
+ BOOST_LOG_TRIVIAL(debug) << "Log debug";
+#endif
+ BOOST_LOG_TRIVIAL(info) << "Log info";
+ BOOST_LOG_TRIVIAL(warning) << "Log warning";
+
std::string hello( "Hello, world!\n" );
BOOST_FOREACH( char ch, hello )