14 lines
359 B
C++
14 lines
359 B
C++
#pragma once
|
|
|
|
#include <format>
|
|
#include <sophia/util/logger.hpp>
|
|
#include <utility>
|
|
|
|
template <typename... Args>
|
|
void log(std::format_string<Args...> fmt, Args&&... args) {
|
|
if constexpr (sophia::log::enabled) {
|
|
sophia::log::print("\033[1;38;2;170;90;255m[editor]\033[0m {}",
|
|
std::format(fmt, std::forward<Args>(args)...));
|
|
}
|
|
}
|