diff options
| author | thecharlesblake | 2017-10-11 11:00:50 +0100 |
|---|---|---|
| committer | thecharlesblake | 2017-10-13 18:46:14 +0100 |
| commit | a70e9a857ece06da65d7ce7c6d271dcd39968d55 (patch) | |
| tree | 3504dcb74903efb669e4955002c1422c2417c68b /src/main/main.cpp | |
| parent | Change project name to Solvitaire (diff) | |
| download | metasol-a70e9a857ece06da65d7ce7c6d271dcd39968d55.tar.gz metasol-a70e9a857ece06da65d7ce7c6d271dcd39968d55.zip | |
Add basic logging to project
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 10 |
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 ) |
