mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-16 17:47:57 +00:00
Compare commits
5 Commits
83b40b8cda
...
685cc4edbc
Author | SHA1 | Date | |
---|---|---|---|
|
685cc4edbc | ||
|
78369375e3 | ||
|
6587058f74 | ||
|
30f738e49a | ||
|
726ca01e5c |
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user