Commit 4189a406 authored by gabime's avatar gabime

git ignore

parent 64f2b332
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
# Codelite
.codelite
# .orig files
*.orig
# example files
example/*
!example/example.cpp
!example/utils.h
!example/makefile
!example/makefile.clang
......@@ -6,6 +6,7 @@
#include "c11log/sinks/async_sink.h"
#include "c11log/sinks/file_sinks.h"
#include "c11log/sinks/console_sinks.h"
#include "c11log/details/log_msg.h"
#include "utils.h"
......
......@@ -32,6 +32,7 @@ public:
_oss);
}
}
// No copy intended. Only move
line_logger(const line_logger& other) = delete;
line_logger& operator=(const line_logger&) = delete;
......@@ -65,7 +66,7 @@ public:
private:
logger* _callback_logger;
details::fast_oss _oss;
details::fast_oss _oss;
level::level_enum _level;
bool _enabled;
......
......@@ -11,6 +11,7 @@
#include "common_types.h"
#include "sinks/base_sink.h"
#include "details/factory.h"
#include "c11log/details/log_msg.h"
//Thread safe, fast logger.
......@@ -101,8 +102,8 @@ 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, msg_level, msg_level >= _atomic_level);
{
return details::line_logger(this, new_log_msg, msg_level >= msg_level);
}
inline c11log::details::line_logger c11log::logger::debug()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment