This commit is contained in:
gabime
2014-11-01 02:28:49 +02:00
parent 1c7b3e4eb2
commit e8403e17df
11 changed files with 42 additions and 25 deletions

View File

@@ -43,7 +43,8 @@ inline spdlog::formatter_ptr spdlog::logger::get_formatter() const
template <typename... Args>
inline spdlog::details::line_logger spdlog::logger::log(level::level_enum lvl, const Args&... args) {
inline spdlog::details::line_logger spdlog::logger::log(level::level_enum lvl, const Args&... args)
{
bool msg_enabled = should_log(lvl);
details::line_logger l(this, lvl, msg_enabled);
if (msg_enabled)
@@ -52,7 +53,8 @@ inline spdlog::details::line_logger spdlog::logger::log(level::level_enum lvl, c
}
template <typename... Args>
inline spdlog::details::line_logger spdlog::logger::log(const Args&... args) {
inline spdlog::details::line_logger spdlog::logger::log(const Args&... args)
{
return log(level::ALWAYS, args...);
}