diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index a9c1c989..4bd65eac 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -58,7 +58,7 @@ SPDLOG_INLINE void swap(logger &a, logger &b) a.swap(b); } -void logger::log(source_loc loc, level::level_enum lvl, const char *msg) +SPDLOG_INLINE void logger::log(source_loc loc, level::level_enum lvl, const char *msg) { if (!should_log(lvl)) { @@ -231,4 +231,4 @@ SPDLOG_INLINE void logger::err_handler_(const std::string &msg) fmt::print(stderr, "[*** LOG ERROR ***] [{}] [{}] {}\n", date_buf, name(), msg); } } -} // namespace spdlog \ No newline at end of file +} // namespace spdlog