MCPcopy Create free account
hub / github.com/Samsung/rlottie / NanoLogger

Method NanoLogger

src/vector/vdebug.cpp:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654class NanoLogger {
655public:
656 NanoLogger(NonGuaranteedLogger ngl, std::string const& log_directory,
657 std::string const& log_file_name, uint32_t log_file_roll_size_mb)
658 : m_state(State::INIT),
659 m_buffer_base(
660 new RingBuffer(std::max(1u, ngl.ring_buffer_size_mb) * 1024 * 4)),
661 m_file_writer(log_directory, log_file_name,
662 std::max(1u, log_file_roll_size_mb)),
663 m_thread(&NanoLogger::pop, this)
664 {
665 m_state.store(State::READY, std::memory_order_release);
666 }
667
668 NanoLogger(GuaranteedLogger /*gl*/, std::string const& log_directory,
669 std::string const& log_file_name, uint32_t log_file_roll_size_mb)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected