mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
clang-format
This commit is contained in:
parent
62ecc04212
commit
a056b9115b
@ -116,7 +116,6 @@ void daily_example()
|
|||||||
auto daily_logger = spdlog::daily_logger_mt("daily_logger", "logs/daily.txt", 2, 30);
|
auto daily_logger = spdlog::daily_logger_mt("daily_logger", "logs/daily.txt", 2, 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Load log levels from SPDLOG_LEVEL environment variable if exists.
|
// Load log levels from SPDLOG_LEVEL environment variable if exists.
|
||||||
//
|
//
|
||||||
// set global level to debug:
|
// set global level to debug:
|
||||||
|
@ -79,7 +79,7 @@ SPDLOG_INLINE std::unordered_map<std::string, std::string> extract_key_vals_(con
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline details::registry::logger_levels extract_levels_(const std::string& input)
|
inline details::registry::logger_levels extract_levels_(const std::string &input)
|
||||||
{
|
{
|
||||||
auto key_vals = extract_key_vals_(input);
|
auto key_vals = extract_key_vals_(input);
|
||||||
details::registry::logger_levels rv;
|
details::registry::logger_levels rv;
|
||||||
|
@ -35,7 +35,7 @@ SPDLOG_INLINE spdlog::level::level_enum from_str(const std::string &name) SPDLOG
|
|||||||
level++;
|
level++;
|
||||||
}
|
}
|
||||||
// allow warn = warning before giving up
|
// allow warn = warning before giving up
|
||||||
return name == "warn" ? level::warn: level::off;
|
return name == "warn" ? level::warn : level::off;
|
||||||
}
|
}
|
||||||
} // namespace level
|
} // namespace level
|
||||||
|
|
||||||
|
@ -541,7 +541,7 @@ std::string SPDLOG_INLINE getenv(const char *field)
|
|||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#if defined(__cplusplus_winrt)
|
#if defined(__cplusplus_winrt)
|
||||||
return std::string{}; //not supported under uwp
|
return std::string{}; // not supported under uwp
|
||||||
#else
|
#else
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
Loading…
Reference in New Issue
Block a user