Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2019-08-27 01:16:57 +0300
committergabime <gmelman1@gmail.com>2019-08-27 01:16:57 +0300
commit408a1620447e69ffda61568fd6595fd2716ba1f7 (patch)
tree77030e2faa5f458edf5ddefbd58e2e8dfb73ffd4 /example
parent7d6444491ca00d15490e0e055c380ff784263669 (diff)
Removed logger::clone() from API
Diffstat (limited to 'example')
-rw-r--r--example/example.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/example/example.cpp b/example/example.cpp
index ce57fc9d..9a070c1e 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -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()
{