Debug logging. More...
#include <string>#include <exception>#include <boost/log/trivial.hpp>

Namespaces | |
| Myra | |
| Namespace declaration for all of the Myra Canyon helper functions. | |
Macros | |
| #define | LOG_HIGHLIGHT |
| Log a line so it stands out when it happens. Sometimes useful for temporary debugging. More... | |
| #define | LOG_PROBLEM(error_no, msg) |
| Log a serious problem. Include the backtrace, and errno if it is non-zero. More... | |
| #define | THROW_RUNTIME_ERROR(error_no, msg) |
| Log an error and throw a std::runtime_error object. More... | |
| #define | THROW_INVALID_ARGUMENT(error_no, msg) |
| Log an error and throw a std::invalid_argument object. More... | |
| #define | LOG_TRACE BOOST_LOG_TRIVIAL(trace) |
| All logging should be done using one of the LOG macros. More... | |
| #define | LOG_DEBUG BOOST_LOG_TRIVIAL(debug) |
| All logging should be done using one of the LOG macros. More... | |
| #define | LOG_INFO BOOST_LOG_TRIVIAL(info) |
| All logging should be done using one of the LOG macros. More... | |
| #define | LOG_WARN BOOST_LOG_TRIVIAL(warning) |
| All logging should be done using one of the LOG macros. More... | |
| #define | LOG_ERROR BOOST_LOG_TRIVIAL(error) |
| All logging should be done using one of the LOG macros. More... | |
| #define | LOG_FATAL BOOST_LOG_TRIVIAL(fatal) |
| All logging should be done using one of the LOG macros. More... | |
Functions | |
| void | Myra::initialize_logging (void) |
| Initialize boost::log. More... | |
| void | Myra::initialize_file_logging (const std::string &filename) |
| Add the specified filename as a log sink. More... | |
| void | Myra::reset_logging (void) |
| Reset boost::log and disable logging. More... | |
| void | Myra::log_backtrace (void) |
| Log a line for every function name in the call stack. More... | |
Debug logging.
Uses BOOST_LOG_TRIVIAL.
| #define LOG_DEBUG BOOST_LOG_TRIVIAL(debug) |
All logging should be done using one of the LOG macros.
| #define LOG_ERROR BOOST_LOG_TRIVIAL(error) |
All logging should be done using one of the LOG macros.
| #define LOG_FATAL BOOST_LOG_TRIVIAL(fatal) |
All logging should be done using one of the LOG macros.
| #define LOG_HIGHLIGHT |
Log a line so it stands out when it happens. Sometimes useful for temporary debugging.
| #define LOG_INFO BOOST_LOG_TRIVIAL(info) |
All logging should be done using one of the LOG macros.
| #define LOG_PROBLEM | ( | error_no, | |
| msg | |||
| ) |
Log a serious problem. Include the backtrace, and errno if it is non-zero.
| #define LOG_TRACE BOOST_LOG_TRIVIAL(trace) |
All logging should be done using one of the LOG macros.
| #define LOG_WARN BOOST_LOG_TRIVIAL(warning) |
All logging should be done using one of the LOG macros.
| #define THROW_INVALID_ARGUMENT | ( | error_no, | |
| msg | |||
| ) |
Log an error and throw a std::invalid_argument object.
| #define THROW_RUNTIME_ERROR | ( | error_no, | |
| msg | |||
| ) |
Log an error and throw a std::runtime_error object.