log_msg.h

This commit is contained in:
gabime 2014-05-06 16:11:31 +03:00
parent bde2d24abb
commit 3463dcd1aa
2 changed files with 26 additions and 1 deletions

View File

@ -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;

View File

@ -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;
};
}
}