aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util/Log.hpp
blob: 651f0766cbf13f375380c62066edecab275c1695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "Log.h"

namespace crepe {

template <class... Args>
void Log::logf(std::format_string<Args...> fmt, Args &&... args) {
	Log::logf(Level::INFO, fmt, std::forward<Args>(args)...);
}

template <class... Args>
void Log::logf(const Level & level, std::format_string<Args...> fmt,
			   Args &&... args) {
	Log::log(level, std::format(fmt, std::forward<Args>(args)...));
}

} // namespace crepe