我正在使用 Pantheios 库进行日志记录。我有:
pantheios::log(pantheios::debug, "I'm debug");
pantheios::log(pantheios::informational, "Some info");
哪个输出:
[MyApplication, Jun 14 15:45:26.549; Debug] : I'm debug
[MyApplication.1, Jun 14 15:45:26.549; Informational] : Some info
但我想在显示信息和调试之间进行选择:
set_level(pantheios::informational) //what should this be ?
pantheios::log(pantheios::debug, "I'm debug");
pantheios::log(pantheios::informational, "Some info");
哪个输出:
[MyApplication.1, Jun 14 15:45:26.549; Informational] : Some info