Some fixes for logging, added MIJIN_LOG_IF and the DebugOutputLogSink.

This commit is contained in:
Patrick Wuttke
2025-08-30 00:29:16 +02:00
parent b44d6feb97
commit e704c082b7
4 changed files with 80 additions and 4 deletions

View File

@@ -92,10 +92,10 @@ public:
using string_t = formatter_t::string_t;
using typename base_t::message_t;
private:
not_null_t<formatter_ptr_t> mFormatter;
formatter_ptr_t mFormatter;
string_t mBuffer;
public:
explicit BaseFormattingLogSink(not_null_t<formatter_ptr_t> formatter, allocator_t allocator = {})
explicit BaseFormattingLogSink(formatter_ptr_t formatter, allocator_t allocator = {})
MIJIN_NOEXCEPT_IF(std::is_nothrow_move_constructible_v<allocator_t>)
: mFormatter(std::move(formatter)), mBuffer(std::move(allocator))
{}