#include <stddef.h>
#include <dpl/exception.h>
#include <dpl/log/log.h>
+#include <cstdio>
namespace CKM {
Exception* Exception::m_lastException = NULL;
void LogUnhandledException(const std::string &str)
{
+ // Logging to console
+ printf("%s\n", str.c_str());
+
// Logging to dlog
LogPedantic(str);
}
int line,
const char *function)
{
+ // Logging to console
+ std::ostringstream msg;
+ msg << "\033[1;5;31m\n=== [" << filename << ":" << line << "] " <<
+ function << " ===\033[m";
+ msg << str;
+ printf("%s\n", msg.str().c_str());
+
// Logging to dlog
CKM::Log::LogSystemSingleton::Instance().Log(CKM::Log::AbstractLogProvider::LogLevel::Error,
str.c_str(),