logging.h 361 B

12345678910
  1. #include <boost/log/trivial.hpp>
  2. #include <iomanip>
  3. #include "utils.h"
  4. #define BUGZ_LOG(severity) \
  5. BOOST_LOG_TRIVIAL(severity) \
  6. << "(" << std::setw(15) << trim_path(__FILE__) << ":" << std::setw(4) \
  7. << std::left << __LINE__ << ") "