mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if
This commit is contained in:
@@ -31,8 +31,6 @@ int main(int, char*[])
|
||||
console->info("Welcome to spdlog!");
|
||||
console->error("Some error message with arg{}..", 1);
|
||||
|
||||
// Conditional logging example
|
||||
console->info_if(true, "Welcome to spdlog conditional logging!");
|
||||
|
||||
// Formatting examples
|
||||
console->warn("Easy padding in numbers like {:08d}", 12);
|
||||
@@ -41,9 +39,6 @@ int main(int, char*[])
|
||||
console->info("Positional args are {1} {0}..", "too", "supported");
|
||||
console->info("{:<30}", "left aligned");
|
||||
|
||||
SPDLOG_DEBUG_IF(console, true, "This is a debug log");
|
||||
|
||||
|
||||
spd::get("console")->info("loggers can be retrieved from a global registry using the spdlog::get(logger_name) function");
|
||||
|
||||
|
||||
@@ -77,7 +72,6 @@ int main(int, char*[])
|
||||
// define SPDLOG_DEBUG_ON or SPDLOG_TRACE_ON
|
||||
SPDLOG_TRACE(console, "Enabled only #ifdef SPDLOG_TRACE_ON..{} ,{}", 1, 3.23);
|
||||
SPDLOG_DEBUG(console, "Enabled only #ifdef SPDLOG_DEBUG_ON.. {} ,{}", 1, 3.23);
|
||||
SPDLOG_DEBUG_IF(console, true, "This is a debug log");
|
||||
|
||||
|
||||
// Asynchronous logging is very fast..
|
||||
|
Reference in New Issue
Block a user