Summary: Glog doesn't try to, so there's no real reason to try and be smart. Just do the same thing as every other platform for now until we have reason to do otherwise.
Reviewed By: simpkins
Differential Revision:
D5259435
fbshipit-source-id:
dcdf55f51f2e13945afd351cb45e9c1a22f56218
*/
#include <folly/experimental/logging/LoggerDB.h>
*/
#include <folly/experimental/logging/LoggerDB.h>
-#if _WIN32
-#include <crtdbg.h>
-#endif
-
#include <folly/Conv.h>
#include <folly/FileUtil.h>
#include <folly/String.h>
#include <folly/Conv.h>
#include <folly/FileUtil.h>
#include <folly/String.h>
-#if _WIN32
- // Use _CrtDbgReport() to report the error
- _CrtDbgReport(
- _CRT_WARN, filename, lineNumber, "folly::logging", "%s", msg.c_str());
-#else
if (folly::kIsDebug) {
// Write directly to file descriptor 2.
//
if (folly::kIsDebug) {
// Write directly to file descriptor 2.
//
"logging warning:", filename, ":", lineNumber, ": ", msg, "\n");
folly::writeFull(STDERR_FILENO, fullMsg.data(), fullMsg.size());
}
"logging warning:", filename, ":", lineNumber, ": ", msg, "\n");
folly::writeFull(STDERR_FILENO, fullMsg.data(), fullMsg.size());
}