nice logger api improvement

This commit is contained in:
gabime 2014-03-31 02:16:03 +03:00
parent 9e1ba5167a
commit 1a795a44de
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ int main(int argc, char* argv[])
logger my_logger ("my_logger", nullsink); logger my_logger ("my_logger", nullsink);
auto start = system_clock::now(); auto start = system_clock::now();
for(unsigned int i = 1; i <= howmany ; ++i) for(unsigned int i = 1; i <= howmany ; ++i)
my_logger.info("Hello logger: "); my_logger.info("Hello logger: ");

View File

@ -56,7 +56,7 @@ public:
template<typename T> details::line_logger error(const T&); template<typename T> details::line_logger error(const T&);
template<typename T> details::line_logger critical(const T&); template<typename T> details::line_logger critical(const T&);
template<typename T> details::line_logger fatal(const T&); template<typename T> details::line_logger fatal(const T&);
private: private:
friend details::line_logger; friend details::line_logger;