diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 1eaf737c..2a5733a6 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -143,6 +143,18 @@ inline void log(level::level_enum lvl, format_string_t fmt, Args &&...a default_logger_raw()->log(lvl, fmt, std::forward(args)...); } +template, typename... Args> +void log(source_loc loc, level::level_enum lvl, S fmt, Args &&...args) +{ + default_logger_raw()->log(loc, lvl, fmt, std::forward(args)...); +} + +template, typename... Args> +void log(level::level_enum lvl, S fmt, Args &&...args) +{ + default_logger_raw()->log(lvl, fmt, std::forward(args)...); +} + #ifdef SPDLOG_EMIT_SOURCE_LOCATION template void trace(loc_with_fmt fmt, Args &&...args)