1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 17:47:57 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Gabi Melman
685cc4edbc
Revert last commit 2020-08-20 00:00:54 +03:00
Gabi Melman
78369375e3
Update helpers-inl.h 2020-08-19 23:57:47 +03:00
Gabi Melman
6587058f74
Update argv.h 2020-08-19 23:56:56 +03:00
Gabi Melman
30f738e49a
Merge pull request #1651 from bareya/make_load_env_levels_inline
Make load_env_levels inline function
2020-08-19 23:55:40 +03:00
Piotr Barejko
726ca01e5c Make load_env_levels inline function 2020-08-19 12:43:41 -07:00
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace spdlog {
namespace cfg {
// search for SPDLOG_LEVEL= in the args and use it to init the levels
void load_argv_levels(int argc, const char **argv)
inline void load_argv_levels(int argc, const char **argv)
{
const std::string spdlog_level_prefix = "SPDLOG_LEVEL=";
for (int i = 1; i < argc; i++)
@ -36,7 +36,7 @@ void load_argv_levels(int argc, const char **argv)
}
}
void load_argv_levels(int argc, char **argv)
inline void load_argv_levels(int argc, char **argv)
{
load_argv_levels(argc, const_cast<const char **>(argv));
}

View File

@ -25,7 +25,7 @@
namespace spdlog {
namespace cfg {
void load_env_levels()
inline void load_env_levels()
{
auto env_val = details::os::getenv("SPDLOG_LEVEL");
auto levels = helpers::extract_levels(env_val);