diff --git a/example/example.cpp b/example/example.cpp index 82535a71..81398caf 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -35,7 +35,7 @@ int main(int argc, char* argv[]) auto start = system_clock::now(); for(unsigned int i = 1; i <= howmany ; ++i) - my_logger.info("Hello logger: "); + my_logger.info("Hello logger: ") << 4.5 << 123 << "asdasd" << 123 << 'f'; //auto s = howmany - as->q().size(); auto s = howmany; diff --git a/include/c11log/details/log_msg.h b/include/c11log/details/log_msg.h new file mode 100644 index 00000000..7233ee25 --- /dev/null +++ b/include/c11log/details/log_msg.h @@ -0,0 +1,25 @@ +#pragma once + +namespace c11log +{ +namespace details +{ +struct log_msg +{ + log_msg() = default; + log_msg(level::level_enum l):msg_level(l) {}; + log_msg(const log_msg& other) + { + msg_buf = other.msg_buf; + msg_time = other.msg_time; + msg_header_size = other.msg_header_size; + msg_level = other.msg_level; + } + + bufpair_t msg_buf; + log_clock::time_point msg_time; + std::size_t msg_header_size; + level::level_enum msg_level; +}; +} +}