From 639bfd7452d71c83499d1e7e83be65bc2c861c94 Mon Sep 17 00:00:00 2001 From: Murat Kilivan Date: Sun, 31 May 2020 21:50:15 +0100 Subject: [PATCH] Use the correct namespace to call shutDownLogging() (#353) This commit is to align the example source code in README with the source code. --- README.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 9da3091..ed3900f 100644 --- a/README.markdown +++ b/README.markdown @@ -120,7 +120,7 @@ auto sinkHandle = logworker->addSink(std::make_unique(), # Code Examples Example usage where a custom sink is added. A function is called though the sink handler to the actual sink object. -``` +```cpp // main.cpp #include #include @@ -145,12 +145,12 @@ int main(int argc, char**argv) { std::future received = sinkHandle->call(&CustomSink::Foo, param1, param2); - // If the LogWorker is initialized then at scope exit the g3::shutDownLogging() will be called. + // If the LogWorker is initialized then at scope exit the g3::internal::shutDownLogging() will be called. // This is important since it protects from LOG calls from static or other entities that will go out of // scope at a later time. // // It can also be called manually: - g3::shutDownLogging(); + g3::internal::shutDownLogging(); } @@ -166,7 +166,7 @@ void SomeFunction() { ``` Example usage where a the default file logger is used **and** a custom sink is added -``` +```cpp // main.cpp #include #include