main.cpp 434 B

1234567891011
  1. #include <boost/log/trivial.hpp>
  2. int main(int, char*[])
  3. {
  4. BOOST_LOG_TRIVIAL(trace) << "A trace severity message";
  5. BOOST_LOG_TRIVIAL(debug) << "A debug severity message";
  6. BOOST_LOG_TRIVIAL(info) << "An informational severity message";
  7. BOOST_LOG_TRIVIAL(warning) << "A warning severity message";
  8. BOOST_LOG_TRIVIAL(error) << "An error severity message";
  9. BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message";
  10. }