|
|
|
@ -23,14 +23,13 @@ void custom_flags_example();
|
|
|
|
|
|
|
|
|
|
#include "spdlog/spdlog.h"
|
|
|
|
|
#include "spdlog/cfg/env.h" // support for loading levels from the environment variable
|
|
|
|
|
#include "spdlog/fmt/compile.h"
|
|
|
|
|
|
|
|
|
|
int main(int, char *[])
|
|
|
|
|
{
|
|
|
|
|
// Log levels can be loaded from argv/env using "SPDLOG_LEVEL"
|
|
|
|
|
load_levels_example();
|
|
|
|
|
|
|
|
|
|
spdlog::info(FMT_COMPILE("Welcome to spdlog version {}.{}.{} {:d} !"), SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH, "SS");
|
|
|
|
|
spdlog::info("Welcome to spdlog version {}.{}.{} !", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH);
|
|
|
|
|
|
|
|
|
|
spdlog::warn("Easy padding in numbers like {:08d}", 12);
|
|
|
|
|
spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
|
|
|
|