|
@ -6,10 +6,6 @@ |
|
|
|
|
|
|
|
|
#include <sstream> |
|
|
#include <sstream> |
|
|
#include <thread> |
|
|
#include <thread> |
|
|
#ifdef ANDROID |
|
|
|
|
|
#include <android/log.h> |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// pEpLog
|
|
|
// pEpLog
|
|
|
// ======
|
|
|
// ======
|
|
|
// a "to be kept ultra small and simple" logging unit.
|
|
|
// a "to be kept ultra small and simple" logging unit.
|
|
@ -36,12 +32,13 @@ |
|
|
do { \ |
|
|
do { \ |
|
|
} while (0) |
|
|
} while (0) |
|
|
#else |
|
|
#else |
|
|
#define pEpLog(msg) \ |
|
|
#define pEpLog(msg) \ |
|
|
do { \ |
|
|
do { \ |
|
|
std::stringstream msg_ss; \ |
|
|
std::stringstream msg_ss; \ |
|
|
msg_ss << std::this_thread::get_id() << " - " << __FILE__ << "::" << __FUNCTION__ << " - " << msg; \ |
|
|
msg_ss << std::this_thread::get_id() << " - " << __FILE__ << "::" << __FUNCTION__ \ |
|
|
pEp::Adapter::pEpLog::log(msg_ss.str()); \ |
|
|
<< " - " << msg; \ |
|
|
} while(0) |
|
|
pEp::Adapter::pEpLog::log(msg_ss.str()); \ |
|
|
|
|
|
} while (0) |
|
|
#endif // NDEBUG
|
|
|
#endif // NDEBUG
|
|
|
|
|
|
|
|
|
namespace pEp { |
|
|
namespace pEp { |
|
|