28 static void init(std::string_view applicationName, LOG_LEVEL engineLevel,
29 LOG_LEVEL applicationLevel);
31 [[nodiscard]]
static bool isInitialized();
33 static void setLevel(LOG_CHANNEL channel, LOG_LEVEL level);
35 template <
typename... Args>
36 static void engine(LOG_LEVEL level, std::format_string<Args...> format, Args &&...args) {
37 if (!shouldLog(LOG_CHANNEL::Engine, level)) {
41 write(LOG_CHANNEL::Engine, level, std::format(format, std::forward<Args>(args)...));
44 template <
typename... Args>
45 static void application(LOG_LEVEL level, std::format_string<Args...> format, Args &&...args) {
46 if (!shouldLog(LOG_CHANNEL::Application, level)) {
50 write(LOG_CHANNEL::Application, level, std::format(format, std::forward<Args>(args)...));
54 [[nodiscard]]
static bool shouldLog(LOG_CHANNEL channel, LOG_LEVEL level);
55 static void write(LOG_CHANNEL channel, LOG_LEVEL level, std::string_view message);