15 #if QX_CLANG || QX_APPLE_CLANG || QX_GNU
90 bool remap_to_capacity(
size_t nNewCapacity) noexcept;
105 bool ensure_capacity(
size_t nAdditionalBytes) noexcept;
127 static size_t align_up_u64(
size_t nValue,
size_t nAlignment) noexcept;
131 HANDLE m_hFile = INVALID_HANDLE_VALUE;
132 HANDLE m_hMap =
nullptr;
137 std::byte* m_pData =
nullptr;
140 size_t m_nCapacity = 0;
141 size_t m_nGranularity = 0;
Base class for all file logger streams.
A category is a class that identifies a particular piece of code. This code can be located in differe...
High-performance file logger based on memory-mapped I/O.
virtual void do_log(const category &category, verbosity eVerbosity, string_view svMessage) override
Proceed stream logging.
virtual void do_flush() override
Flush the stream.
file_logger_stream_mapping(const config &streamConfig=config(), unit< size_t, units::data > initialMapSize={ 1, units::data::mebibytes }) noexcept
file_logger_stream_mapping object constructor