Google OR-Tools: ortools/util/logging.h File Reference

#include <cstdint>
#include <functional>
#include <string>
#include <vector>
#include "absl/strings/str_cat.h"
#include "ortools/base/timer.h"
#include "ortools/util/time_limit.h"

Go to the source code of this file.

Macros

#define SOLVER_LOG(logger, ...)
#define FORCED_SOLVER_LOG(logger, ...)

◆ FORCED_SOLVER_LOG

#define FORCED_SOLVER_LOG ( logger,
... )

Value:

(logger)->LogInfo(__FILE__, __LINE__, absl::StrCat(__VA_ARGS__))

Definition at line 118 of file logging.h.

◆ SOLVER_LOG

#define SOLVER_LOG ( logger,
... )

Value:

if ((logger)->LoggingIsEnabled()) \

(logger)->LogInfo(__FILE__, __LINE__, absl::StrCat(__VA_ARGS__))

Definition at line 114 of file logging.h.