}
if (ShouldLogToStderr(severity_)) {
+#if defined(OS_TIZEN)
+ log_priority priority = DLOG_UNKNOWN;
+ switch (severity_) {
+ case LOG_INFO:
+ priority = DLOG_INFO;
+ break;
+ case LOG_WARNING:
+ priority = DLOG_WARN;
+ break;
+ case LOG_ERROR:
+ priority = DLOG_ERROR;
+ break;
+ case LOG_FATAL:
+ priority = DLOG_FATAL;
+ break;
+ }
+ dlog_print(priority, LOG_TAG, "%s", str_newline.c_str());
+#else
// Not using fwrite() here, as there are crashes on Windows when CRT calls
// malloc() internally, triggering an OOM crash. This likely means that the
// process is close to OOM, but at least get the proper error message out,
// free_something();
// }
WriteToFd(STDERR_FILENO, str_newline.data(), str_newline.size());
+#endif
}
if ((g_logging_destination & LOG_TO_FILE) != 0) {