From 6a83c3442632f1a855cf6bba98048627ebc52287 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 22 Mar 2014 14:03:09 +0200 Subject: [PATCH] logger.h --- example/makefile | 3 ++- include/c11log/logger.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/makefile b/example/makefile index ff096c31..907a179a 100644 --- a/example/makefile +++ b/example/makefile @@ -16,7 +16,8 @@ debug: example.cpp clean: rm -f *.txt $(OUTBIN) $(OUTBIN)-debug - + + rebuild: clean all rebuild-debug: clean debug diff --git a/include/c11log/logger.h b/include/c11log/logger.h index d6104594..9cb33167 100644 --- a/include/c11log/logger.h +++ b/include/c11log/logger.h @@ -103,7 +103,7 @@ inline c11log::logger::logger(sinks_init_list sinks_list) : inline c11log::details::line_logger c11log::logger::log(c11log::level::level_enum msg_level) { - return details::line_logger(this, new_log_msg, msg_level >= msg_level); + return details::line_logger(this, msg_level, msg_level >= _atomic_level); } inline c11log::details::line_logger c11log::logger::debug()