CommonLibSSE (powerof3)
Logger.h File Reference

Go to the source code of this file.

Namespaces

 SKSE
 
 SKSE::log
 

Macros

#define SKSE_MAKE_SOURCE_LOGGER(a_func, a_type)
 

Functions

 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (trace, trace)
 
 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (debug, debug)
 
 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (info, info)
 
 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (warn, warn)
 
 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (error, err)
 
 SKSE::log::SKSE_MAKE_SOURCE_LOGGER (critical, critical)
 
std::optional< std::filesystem::path > SKSE::log::log_directory ()
 
void SKSE::log::add_papyrus_sink (std::regex a_filter)
 
void SKSE::log::remove_papyrus_sink ()
 
void SKSE::log::init ()
 

Macro Definition Documentation

◆ SKSE_MAKE_SOURCE_LOGGER

#define SKSE_MAKE_SOURCE_LOGGER (   a_func,
  a_type 
)
Value:
\
template <class... Args> \
struct [[maybe_unused]] a_func \
{ \
a_func() = delete; \
\
explicit a_func( \
spdlog::format_string_t<Args...> a_fmt, \
Args&&... a_args, \
std::source_location a_loc = std::source_location::current()) \
{ \
spdlog::log( \
spdlog::source_loc{ \
a_loc.file_name(), \
static_cast<int>(a_loc.line()), \
a_loc.function_name() }, \
spdlog::level::a_type, \
a_fmt, \
std::forward<Args>(a_args)...); \
} \
}; \
\
template <class... Args> \
a_func(spdlog::format_string_t<Args...>, Args&&...) -> a_func<Args...>;