CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
Logger.h File Reference
#include "RE/B/BSTEvent.h"
#include "RE/L/LogEvent.h"

Go to the source code of this file.

Namespaces

namespace  SKSE
 
namespace  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 ()
 

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( \
fmt::format_string<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(fmt::format_string<Args...>, Args&&...) -> a_func<Args...>;