This commit is contained in:
gabime
2019-12-11 01:24:51 +02:00
parent b278baf94e
commit 2b3000dddc
3 changed files with 71 additions and 26 deletions

View File

@@ -9,14 +9,16 @@
int main(int, char *[])
{
spdlog::set_pattern("%v");
try
{
auto cfg = spdlog::cfg::from_env();
for (auto &item : cfg)
{
spdlog::info("logger: '{}' level: '{}' pattern: '{}'", item.first, item.second.level_name, item.second.pattern);
}
spdlog::cfg::env::init();
spdlog::info("Hello");
// auto cfg = spdlog::cfg::from_env();
// for (auto &item : cfg)
// {
// spdlog::info("logger: '{}' level: '{}' pattern: '{}'", item.first, item.second.level_name, item.second.pattern);
// }
}
catch (spdlog::spdlog_ex &ex)
{