aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
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 )