6#define SKSE_MAKE_SOURCE_LOGGER(a_func, a_type) \
8 template <class... Args> \
9 struct [[maybe_unused]] a_func \
14 fmt::format_string<Args...> a_fmt, \
16 std::source_location a_loc = std::source_location::current()) \
21 static_cast<int>(a_loc.line()), \
22 a_loc.function_name() }, \
23 spdlog::level::a_type, \
25 std::forward<Args>(a_args)...); \
29 template <class... Args> \
30 a_func(fmt::format_string<Args...>, Args&&...) -> a_func<Args...>;
47#undef SKSE_MAKE_SOURCE_LOGGER
#define SKSE_MAKE_SOURCE_LOGGER(a_func, a_type)
Definition: Logger.h:6
void remove_papyrus_sink()
void add_papyrus_sink(std::regex a_filter)
std::optional< std::filesystem::path > log_directory()