/
niceSOFT
/
cmake
Обзор
Документация
Войти
/
niceSOFT
/
cmake
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Help/guide/tutorial/Step8/MathFunctions/MathLogger/MathLogger.h
22 строки
344 B
Vito Gamberini
Tutorial: Rewrite using conventions enabled by CMake 3.23
17 сен 2025, 18:57
17 сен 2025, 18:57
b2e3e3e
Код
Авторство
О чём код?
#pragma once #include <string> #include "MathFormatting.h" #include "MathOutput.h" namespace mathlogger { struct Logger { LogLevel level = INFO; void SetLevel(LogLevel new_level) { level = new_level; } void Log(std::string const& message) { std::string formatted = FormatLog(level, message); WriteLog(formatted); } }; }