1 /* 2 * Copyright Andrey Semashev 2007 - 2015. 3 * Distributed under the Boost Software License, Version 1.0. 4 * (See accompanying file LICENSE_1_0.txt or copy at 5 * http://www.boost.org/LICENSE_1_0.txt) 6 */ 7 8 //[ example_tutorial_trivial 9 #include <boost/log/trivial.hpp> 10 main(int,char * [])11int main(int, char*[]) 12 { 13 BOOST_LOG_TRIVIAL(trace) << "A trace severity message"; 14 BOOST_LOG_TRIVIAL(debug) << "A debug severity message"; 15 BOOST_LOG_TRIVIAL(info) << "An informational severity message"; 16 BOOST_LOG_TRIVIAL(warning) << "A warning severity message"; 17 BOOST_LOG_TRIVIAL(error) << "An error severity message"; 18 BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message"; 19 20 return 0; 21 } 22 //] 23