spdl::setup("exampleDemo", "warn")
# and spdl::init("warn") and spdl::log("warn") are shortcuts
spdl::info("Not seen as level 'info' below 'warn'")
spdl::warn("This warning message is seen")
spdl::set_level("info")
spdl::info("Now this informational message is seen too")
spdl::info("Calls use fmtlib::fmt {} as we can see {}", "under the hood", 42L)
Run the code above in your browser using DataLab