30 FLINT_API
static void init(std::string_view applicationName, LOG_LEVEL engineLevel,
31 LOG_LEVEL applicationLevel);
33 [[nodiscard]] FLINT_API
static bool isInitialized();
35 FLINT_API
static void setLevel(LOG_CHANNEL channel, LOG_LEVEL level);
37 template <
typename... Args>
38 static void engine(LOG_LEVEL level, std::format_string<Args...> format, Args &&...args) {
39 if (!shouldLog(LOG_CHANNEL::Engine, level)) {
43 write(LOG_CHANNEL::Engine, level, std::format(format, std::forward<Args>(args)...));
46 template <
typename... Args>
47 static void application(LOG_LEVEL level, std::format_string<Args...> format, Args &&...args) {
48 if (!shouldLog(LOG_CHANNEL::Application, level)) {
52 write(LOG_CHANNEL::Application, level, std::format(format, std::forward<Args>(args)...));
56 [[nodiscard]] FLINT_API
static bool shouldLog(LOG_CHANNEL channel, LOG_LEVEL level);
57 FLINT_API
static void write(LOG_CHANNEL channel, LOG_LEVEL level, std::string_view message);