1#ifndef HYDROBRICKS_LOG_H
2#define HYDROBRICKS_LOG_H
18void LogSetLevel(LogLevel level);
23void LogSetFile(
const std::string& path);
31void LogError(
const std::string& msg);
32void LogWarning(
const std::string& msg);
33void LogMessage(
const std::string& msg);
34void LogDebug(
const std::string& msg);
37template <
typename... Args>
38void LogError(std::format_string<Args...> fmt, Args&&... args) {
39 LogError(std::format(fmt, std::forward<Args>(args)...));
42template <
typename... Args>
43void LogWarning(std::format_string<Args...> fmt, Args&&... args) {
44 LogWarning(std::format(fmt, std::forward<Args>(args)...));
47template <
typename... Args>
48void LogMessage(std::format_string<Args...> fmt, Args&&... args) {
49 LogMessage(std::format(fmt, std::forward<Args>(args)...));
52template <
typename... Args>
53void LogDebug(std::format_string<Args...> fmt, Args&&... args) {
54 LogDebug(std::format(fmt, std::forward<Args>(args)...));