tutorial_trivial.cpp 709 B

12345678910111213141516171819202122
  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. //[ example_tutorial_trivial
  8. #include <boost/log/trivial.hpp>
  9. int main(int, char*[])
  10. {
  11. BOOST_LOG_TRIVIAL(trace) << "A trace severity message";
  12. BOOST_LOG_TRIVIAL(debug) << "A debug severity message";
  13. BOOST_LOG_TRIVIAL(info) << "An informational severity message";
  14. BOOST_LOG_TRIVIAL(warning) << "A warning severity message";
  15. BOOST_LOG_TRIVIAL(error) << "An error severity message";
  16. BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message";
  17. return 0;
  18. }
  19. //]