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