mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Removed logger::clone() from API
This commit is contained in:
@@ -47,7 +47,6 @@ int main(int, char *[])
|
||||
basic_example();
|
||||
rotating_example();
|
||||
daily_example();
|
||||
clone_example();
|
||||
async_example();
|
||||
binary_example();
|
||||
multi_sink_example();
|
||||
@@ -106,14 +105,6 @@ void daily_example()
|
||||
auto daily_logger = spdlog::daily_logger_mt("daily_logger", "logs/daily.txt", 2, 30);
|
||||
}
|
||||
|
||||
// Clone a logger and give it new name.
|
||||
// Useful for creating component/subsystem loggers from some "root" logger.
|
||||
void clone_example()
|
||||
{
|
||||
auto network_logger = spdlog::default_logger()->clone("network");
|
||||
network_logger->info("Logging network stuff..");
|
||||
}
|
||||
|
||||
#include "spdlog/async.h"
|
||||
void async_example()
|
||||
{
|
||||
|
Reference in New Issue
Block a user