]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/log/example/doc/tutorial_trivial.cpp
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)
8 //[ example_tutorial_trivial
9 #include <boost/log/trivial.hpp>
11 int main(int, char*[])
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";