#include "standalone/base/logging.h"
#include <atomic>
#include <iostream>
#include "build/build_config.h"
#include "third_party/abseil-cpp/absl/base/log_severity.h"
#if BUILDFLAG(IS_POSIX)
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#endif
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif
#if defined(THREAD_SANITIZER)
#include "third_party/abseil-cpp/absl/synchronization/mutex.h"
#endif
namespace ipcz::standalone {
namespace {
std::atomic_int g_verbosity_level{ … };
#if defined(THREAD_SANITIZER)
absl::Mutex* GetCerrMutex() {
static absl::Mutex* mutex = new absl::Mutex();
return mutex;
}
#endif
}
LogMessage::LogMessage(const char* file, int line, Level level) { … }
LogMessage::~LogMessage() { … }
void SetVerbosityLevel(int level) { … }
int GetVerbosityLevel() { … }
}