Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
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.

Classes

class  operations_research::SolverLogger
class  operations_research::PresolveTimer

Namespaces

namespace  operations_research
 OR-Tools root namespace.

Macros

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

Functions

std::string operations_research::FormatCounter (int64_t num)

Macro Definition Documentation

◆ 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.