14#ifndef OR_TOOLS_UTIL_LOGGING_H_
15#define OR_TOOLS_UTIL_LOGGING_H_
60 void LogInfo(
const char* source_filename,
int source_line,
64 bool is_enabled_ =
false;
65 bool log_to_stdout_ =
false;
66 std::vector<std::function<void(
const std::string&
message)>> info_callbacks_;
69#define SOLVER_LOG(logger, ...) \
70 if ((logger)->LoggingIsEnabled()) \
71 (logger)->LogInfo(__FILE__, __LINE__, absl::StrCat(__VA_ARGS__))
void SetLogToStdOut(bool enable)
int NumInfoLoggingCallbacks() const
void LogInfo(const char *source_filename, int source_line, const std::string &message)
void ClearInfoLoggingCallbacks()
bool LoggingIsEnabled() const
void AddInfoLoggingCallback(std::function< void(const std::string &message)> callback)
void EnableLogging(bool enable)
Collection of objects used to extend the Constraint Solver library.