|
rtc.avd_SDK-C++
3.2.0
|
宏定义 | |
| #define | RT_LOG_MODULE_TRACE |
| #define | RT_ERROR_LOG(module, str) RT_LOG(rtcbase::LS_ERROR, module, str) |
| #define | RT_WARNING_LOG(module, str) RT_LOG(rtcbase::LS_WARNING, module, str) |
| #define | RT_INFO_LOG(module, str) RT_LOG(rtcbase::LS_INFO, module, str) |
| #define | RT_STATE_LOG(module, str) RT_LOG(rtcbase::LS_VERBOSE, module, str) |
| #define | RT_ERROR_LOG_THIS(module, str) RT_LOG(rtcbase::LS_ERROR, module, str << " this=" << this) |
| #define | RT_WARNING_LOG_THIS(module, str) RT_LOG(rtcbase::LS_WARNING, module, str << " this=" << this) |
| #define | RT_INFO_LOG_THIS(module, str) RT_LOG(rtcbase::LS_INFO, module, str << " this=" << this) |
| #define | RT_STATE_LOG_THIS(module, str) RT_LOG(rtcbase::LS_VERBOSE, module, str << " this=" << this) |
| #define | UPLOAD_LOG_DEBUG 1 |
| 上传日志 更多... | |
| #define | UPLOAD_LOG_INFO 2 |
| #define | UPLOAD_LOG_ERROR 3 |
| #define | LOG_INFO_UPLOG_END(room, level) {std::string str = log_os.str(); if (room){ room->createLogPduMsg(str, level); } } |
| #define | LOG_DEBUG_UPLOG(str, room) {LOG_STATE_T_F(str); std::ostringstream log_os; log_os << __FUNCTION__ << ":" << str; LOG_INFO_UPLOG_END(room, UPLOAD_LOG_DEBUG); } |
| #define | RTC_LOG_T_F(LS_INFO) |
| #define | RTC_LOG_T_F(LS_ERROR) |
| #define | LOG_ERROR(str) RT_ERROR_LOG(RT_LOG_MODULE_TRACE, str) |
| #define | LOG_WARNING(str) RT_WARNING_LOG(RT_LOG_MODULE_TRACE, str) |
| #define | LOG_INFO(str) RT_INFO_LOG(RT_LOG_MODULE_TRACE, str) |
| #define | LOG_STATE(str) RT_STATE_LOG(RT_LOG_MODULE_TRACE, str) |
| #define | LOG_ERROR_T(str) LOG_ERROR(str << " this=" << this) |
| #define | LOG_WARNING_T(str) LOG_WARNING(str << " this=" << this) |
| #define | LOG_INFO_T(str) LOG_INFO(str << " this=" << this) |
| #define | LOG_STATE_T(str) LOG_STATE(str << " this=" << this) |
| #define | LOG_ERROR_F(str) LOG_ERROR(__FUNCTION__ << ": " << str) |
| #define | LOG_WARNING_F(str) LOG_WARNING(__FUNCTION__ << ": " << str) |
| #define | RTC_LOG_T_F(LS_INFO) <<str) LOG_INFO(__FUNCTION__ << ": " << str) |
| #define | LOG_STATE_F(str) LOG_STATE(__FUNCTION__ << ": " << str) |
| #define | LOG_ERROR_T_F(str) LOG_ERROR(__FUNCTION__ << ": " << str << " this=" << this) |
| #define | LOG_WARNING_T_F(str) LOG_WARNING(__FUNCTION__ << ": " << str << " this=" << this) |
| #define | LOG_INFO_T_F(str) LOG_INFO(__FUNCTION__ << ": " << str << " this=" << this) |
| #define | LOG_STATE_T_F(str) LOG_STATE(__FUNCTION__ << ": " << str << " this=" << this) |
| #define | RT_DIAGNOSE_TRACE(str) |
| #define LOG_DEBUG_UPLOG | ( | str, | |
| room | |||
| ) | {LOG_STATE_T_F(str); std::ostringstream log_os; log_os << __FUNCTION__ << ":" << str; LOG_INFO_UPLOG_END(room, UPLOAD_LOG_DEBUG); } |
| #define LOG_ERROR | ( | str | ) | RT_ERROR_LOG(RT_LOG_MODULE_TRACE, str) |
| #define LOG_ERROR_F | ( | str | ) | LOG_ERROR(__FUNCTION__ << ": " << str) |
| #define LOG_ERROR_T | ( | str | ) | LOG_ERROR(str << " this=" << this) |
| #define LOG_ERROR_T_F | ( | str | ) | LOG_ERROR(__FUNCTION__ << ": " << str << " this=" << this) |
| #define LOG_INFO | ( | str | ) | RT_INFO_LOG(RT_LOG_MODULE_TRACE, str) |
| #define LOG_INFO_T | ( | str | ) | LOG_INFO(str << " this=" << this) |
| #define LOG_INFO_T_F | ( | str | ) | LOG_INFO(__FUNCTION__ << ": " << str << " this=" << this) |
| #define LOG_INFO_UPLOG_END | ( | room, | |
| level | |||
| ) | {std::string str = log_os.str(); if (room){ room->createLogPduMsg(str, level); } } |
| #define LOG_STATE | ( | str | ) | RT_STATE_LOG(RT_LOG_MODULE_TRACE, str) |
| #define LOG_STATE_F | ( | str | ) | LOG_STATE(__FUNCTION__ << ": " << str) |
| #define LOG_STATE_T | ( | str | ) | LOG_STATE(str << " this=" << this) |
| #define LOG_STATE_T_F | ( | str | ) | LOG_STATE(__FUNCTION__ << ": " << str << " this=" << this) |
| #define LOG_WARNING | ( | str | ) | RT_WARNING_LOG(RT_LOG_MODULE_TRACE, str) |
| #define LOG_WARNING_F | ( | str | ) | LOG_WARNING(__FUNCTION__ << ": " << str) |
| #define LOG_WARNING_T | ( | str | ) | LOG_WARNING(str << " this=" << this) |
| #define LOG_WARNING_T_F | ( | str | ) | LOG_WARNING(__FUNCTION__ << ": " << str << " this=" << this) |
| #define RT_DIAGNOSE_TRACE | ( | str | ) |
| #define RT_ERROR_LOG | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_ERROR, module, str) |
| #define RT_ERROR_LOG_THIS | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_ERROR, module, str << " this=" << this) |
| #define RT_INFO_LOG | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_INFO, module, str) |
| #define RT_INFO_LOG_THIS | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_INFO, module, str << " this=" << this) |
| #define RT_LOG_MODULE_TRACE |
| #define RT_STATE_LOG | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_VERBOSE, module, str) |
| #define RT_STATE_LOG_THIS | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_VERBOSE, module, str << " this=" << this) |
| #define RT_WARNING_LOG | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_WARNING, module, str) |
| #define RT_WARNING_LOG_THIS | ( | module, | |
| str | |||
| ) | RT_LOG(rtcbase::LS_WARNING, module, str << " this=" << this) |
| #define RTC_LOG_T_F | ( | LS_INFO | ) |
| #define RTC_LOG_T_F | ( | LS_ERROR | ) |
| #define RTC_LOG_T_F | ( | LS_INFO | ) | <<str) LOG_INFO(__FUNCTION__ << ": " << str) |
| #define UPLOAD_LOG_DEBUG 1 |
上传日志
| #define UPLOAD_LOG_ERROR 3 |
| #define UPLOAD_LOG_INFO 2 |
1.8.15