| #ifndef THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_THERMAL_CONTROLLER_OPTIMIZER_OPTIMIZER_LOGGER_H_ |
| #define THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_THERMAL_CONTROLLER_OPTIMIZER_OPTIMIZER_LOGGER_H_ |
| |
| #include "absl/log/log.h" |
| #include "absl/strings/string_view.h" |
| |
| namespace milotic_tlbmc { |
| namespace thermal { |
| namespace optimizer { |
| |
| /* |
| * `OptimizerLogger` is a utility class for logging messages from the thermal |
| * optimizer. Intuitively, the calculation logs from the optimizers should be |
| * enabled at all times, no matter whether the debug mode is enabled or not, so |
| * that the automated tuning process can be monitored at all times. |
| */ |
| class OptimizerLogger { |
| public: |
| static void Log(absl::string_view message) { |
| LOG(WARNING) << "[Thermal Optimizer]: " << message; |
| } |
| }; |
| |
| } // namespace optimizer |
| } // namespace thermal |
| } // namespace milotic_tlbmc |
| |
| #endif // THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_THERMAL_CONTROLLER_OPTIMIZER_OPTIMIZER_LOGGER_H_ |