mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
Added comment about log_msg_buffer
This commit is contained in:
parent
ef10d4b636
commit
ec523b967c
@ -6,6 +6,10 @@
|
|||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
namespace details {
|
namespace details {
|
||||||
|
|
||||||
|
// copy logger name and payload to buffer so can be used asynchronously
|
||||||
|
// note: source location pointers are copied without allocation since they
|
||||||
|
// are compiler generated const chars* (__FILE__, __LINE__, __FUNCTION__)
|
||||||
|
// if you pass custom strings to source location, make sure they outlive the log_msg_buffer
|
||||||
log_msg_buffer::log_msg_buffer(const log_msg &orig_msg)
|
log_msg_buffer::log_msg_buffer(const log_msg &orig_msg)
|
||||||
: log_msg{orig_msg} {
|
: log_msg{orig_msg} {
|
||||||
buffer.append(logger_name.begin(), logger_name.end());
|
buffer.append(logger_name.begin(), logger_name.end());
|
||||||
|
Loading…
Reference in New Issue
Block a user