spdlog
spdlog copied to clipboard
spdlog::shutdown()
Will the remaining logs in the buffer be written?
Short answer: the sink is destroyed and the buffer is written.
Long answer: the sink registered in the spdlog registry is destroyed and is written from the buffer in the destructor of the sink. However, there is no guarantee that the data in the buffer will be written since the destructor of sink is not called if a reference to sink remains in another location.
I think I understand now, thank you.