23 lines
709 B
C++
23 lines
709 B
C++
/*
|
|
* Copyright Andrey Semashev 2007 - 2015.
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
|
* http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
//[ example_tutorial_trivial
|
|
#include <boost/log/trivial.hpp>
|
|
|
|
int main(int, char*[])
|
|
{
|
|
BOOST_LOG_TRIVIAL(trace) << "A trace severity message";
|
|
BOOST_LOG_TRIVIAL(debug) << "A debug severity message";
|
|
BOOST_LOG_TRIVIAL(info) << "An informational severity message";
|
|
BOOST_LOG_TRIVIAL(warning) << "A warning severity message";
|
|
BOOST_LOG_TRIVIAL(error) << "An error severity message";
|
|
BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message";
|
|
|
|
return 0;
|
|
}
|
|
//]
|