OR-Tools  8.1
raw_logging.h File Reference

Go to the source code of this file.

Namespaces

 google
 

Macros

#define RAW_LOG(severity, ...)
 
#define RAW_VLOG(verboselevel, ...)
 
#define RAW_LOG_INFO(...)    google::RawLog__(google::GLOG_INFO, __FILE__, __LINE__, __VA_ARGS__)
 
#define RAW_LOG_WARNING(...)    google::RawLog__(google::GLOG_WARNING, __FILE__, __LINE__, __VA_ARGS__)
 
#define RAW_LOG_ERROR(...)    google::RawLog__(google::GLOG_ERROR, __FILE__, __LINE__, __VA_ARGS__)
 
#define RAW_LOG_FATAL(...)    google::RawLog__(google::GLOG_FATAL, __FILE__, __LINE__, __VA_ARGS__)
 
#define RAW_CHECK(condition, message)
 
#define RAW_DLOG(severity, ...)   RAW_LOG(severity, __VA_ARGS__)
 
#define RAW_DCHECK(condition, message)   RAW_CHECK(condition, message)
 

Functions

static void RawLogStub__ (int,...)
 
void RawLog__ (LogSeverity severity, const char *file, int line, const char *format,...)
 

Macro Definition Documentation

◆ RAW_CHECK

#define RAW_CHECK (   condition,
  message 
)
Value:
do { \
if (!(condition)) { \
RAW_LOG(FATAL, "Check %s failed: %s", #condition, message); \
} \
} while (0)

Definition at line 106 of file raw_logging.h.

◆ RAW_DCHECK

#define RAW_DCHECK (   condition,
  message 
)    RAW_CHECK(condition, message)

Definition at line 117 of file raw_logging.h.

◆ RAW_DLOG

#define RAW_DLOG (   severity,
  ... 
)    RAW_LOG(severity, __VA_ARGS__)

Definition at line 116 of file raw_logging.h.

◆ RAW_LOG

#define RAW_LOG (   severity,
  ... 
)
Value:
do { \
switch (google::GLOG_##severity) { \
case 0: \
RAW_LOG_INFO(__VA_ARGS__); \
break; \
case 1: \
RAW_LOG_WARNING(__VA_ARGS__); \
break; \
case 2: \
RAW_LOG_ERROR(__VA_ARGS__); \
break; \
case 3: \
RAW_LOG_FATAL(__VA_ARGS__); \
break; \
default: \
break; \
} \
} while (0)

Definition at line 36 of file raw_logging.h.

◆ RAW_LOG_ERROR

#define RAW_LOG_ERROR (   ...)     google::RawLog__(google::GLOG_ERROR, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 84 of file raw_logging.h.

◆ RAW_LOG_FATAL

#define RAW_LOG_FATAL (   ...)     google::RawLog__(google::GLOG_FATAL, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 91 of file raw_logging.h.

◆ RAW_LOG_INFO

#define RAW_LOG_INFO (   ...)     google::RawLog__(google::GLOG_INFO, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 70 of file raw_logging.h.

◆ RAW_LOG_WARNING

#define RAW_LOG_WARNING (   ...)     google::RawLog__(google::GLOG_WARNING, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 77 of file raw_logging.h.

◆ RAW_VLOG

#define RAW_VLOG (   verboselevel,
  ... 
)
Value:
do { \
if (VLOG_IS_ON(verboselevel)) { \
RAW_LOG_INFO(__VA_ARGS__); \
} \
} while (0)

Definition at line 59 of file raw_logging.h.

FATAL
const int FATAL
Definition: log_severity.h:32
message
std::string message
Definition: trace.cc:395
VLOG_IS_ON
#define VLOG_IS_ON(verboselevel)
Definition: vlog_is_on.h:41