You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/example/example.cpp

20 lines
439 B
C++

//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
// spdlog usage example
#include <spdlog/spdlog.h>
#include <spdlog/cfg/env.h>
int main(int, char *[]) {
auto cfg = spdlog::cfg::from_env();
for(auto &item:cfg)\
{
spdlog::info("[{:>8}] level: {} pattern: {}", item.first, spdlog::level::to_string_view(item.second.level), item.second.pattern);
}
}