mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
log_msg.h
This commit is contained in:
parent
bde2d24abb
commit
3463dcd1aa
@ -35,7 +35,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
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: ") << 4.5 << 123 << "asdasd" << 123 << 'f';
|
||||||
|
|
||||||
//auto s = howmany - as->q().size();
|
//auto s = howmany - as->q().size();
|
||||||
auto s = howmany;
|
auto s = howmany;
|
||||||
|
25
include/c11log/details/log_msg.h
Normal file
25
include/c11log/details/log_msg.h
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user