aboutsummaryrefslogtreecommitdiff
path: root/src/main/main.cpp
blob: 54bc493d4351394555a3ed16f8cec99c7620737c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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 )
    {
        std::cout << ch;
    }

    return 0;
}