MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / sink_it_

Method sink_it_

ProgramLog/lazyfilesink.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template<typename Mutex>
32void lazy_file_sink<Mutex>::sink_it_(const spdlog::details::log_msg &msg)
33{
34 open();
35
36 if (m_Handle)
37 {
38 spdlog::memory_buf_t formatted;
39 this->formatter_->format(msg, formatted);
40
41 write(formatted);
42 }
43}
44
45template<typename Mutex>
46void lazy_file_sink<Mutex>::flush_()

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected