From 1a795a44de5e6ed57aeb2febbb2eb3f35acc473f Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 31 Mar 2014 02:16:03 +0300 Subject: [PATCH] nice logger api improvement --- example/example.cpp | 1 + include/c11log/logger.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index bb6228ef..a83bea24 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -31,6 +31,7 @@ int main(int argc, char* argv[]) logger my_logger ("my_logger", nullsink); + auto start = system_clock::now(); for(unsigned int i = 1; i <= howmany ; ++i) my_logger.info("Hello logger: "); diff --git a/include/c11log/logger.h b/include/c11log/logger.h index 001fb9c5..1a9779f4 100644 --- a/include/c11log/logger.h +++ b/include/c11log/logger.h @@ -56,7 +56,7 @@ public: template details::line_logger error(const T&); template details::line_logger critical(const T&); template details::line_logger fatal(const T&); - + private: friend details::line_logger;