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;