|
|
|
@ -63,13 +63,8 @@ public:
|
|
|
|
|
void swap(spdlog::logger &other);
|
|
|
|
|
|
|
|
|
|
template<typename... Args>
|
|
|
|
|
void log(source_loc loc, level::level_enum lvl, const char *fmt, const Args &... args)
|
|
|
|
|
{
|
|
|
|
|
if (!should_log(lvl))
|
|
|
|
|
void force_log(source_loc loc, level::level_enum lvl, const char *fmt, const Args &... args)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
fmt::memory_buffer buf;
|
|
|
|
@ -87,6 +82,15 @@ public:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename... Args>
|
|
|
|
|
void log(source_loc loc, level::level_enum lvl, const char *fmt, const Args &... args)
|
|
|
|
|
{
|
|
|
|
|
if (should_log(lvl))
|
|
|
|
|
{
|
|
|
|
|
force_log(loc, lvl, fmt, args...);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename... Args>
|
|
|
|
|
void log(level::level_enum lvl, const char *fmt, const Args &... args)
|
|
|
|
|
{
|
|
|
|
|