![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Classes | |
| class | CompressionWorker |
| Background worker performing asynchronous compression. More... | |
| class | MdbxByteReader |
| class | MdbxByteWriter |
| class | MdbxReadException |
| class | MpscRingAny |
| Bounded MPSC ring buffer with arbitrary capacity (C++11). More... | |
| class | ScopeTimer |
| class | SingleThreadExecutor |
| Per-instance single-thread executor for isolated async logging. More... | |
| class | TaskExecutor |
| Thread-safe task executor backed by a dedicated worker thread. More... | |
Enumerations | |
| enum class | QueuePolicy { DropNewest , DropOldest , Block } |
| Queue overflow handling policy used by TaskExecutor and SingleThreadExecutor. More... | |
Functions | |
| bool | compress_string_gzip (const std::string &input, std::string &output, int level) |
| Compress a string with gzip. | |
| bool | decompress_string_gzip (const std::string &input, std::string &output) |
| Decompress gzip-compressed bytes. | |
| bool | compress_string_zstd (const std::string &input, std::string &output, int level) |
| Compress a string with zstd. | |
| bool | decompress_string_zstd (const std::string &input, std::string &output) |
| Decompress zstd-compressed bytes. | |
| bool | compress_file (CompressType type, const std::string &src, int level, const std::string &external_cmd) |
| Compress a file using the specified compression type. | |
| int | clamp_level (int v, int lo, int hi) |
| Clamp value to inclusive range. | |
| bool | compress_file_gzip (const std::string &src, const std::string &dst_tmp, int level) |
| Compress file using gzip. | |
| bool | compress_file_zstd (const std::string &src, const std::string &dst_tmp, int level) |
| Compress file using Zstandard. | |
| bool | compress_file_external (const std::string &src, const std::string &cmd_tpl, int level) |
| Compress file using external command. | |
| void | mdbx_write_record_key_be (std::string &key, uint64_t value, size_t offset) |
| void | mdbx_write_record_sequence_be (std::string &key, uint32_t value, size_t offset) |
| std::string | make_mdbx_record_key (int64_t timestamp_ms, uint32_t sequence) |
| uint64_t | current_process_id () |
| template<typename T > | |
| std::string | to_string_any (const T &v) |
| Convert value to string via stream insertion. | |
| std::pair< std::string, std::string > | make_tag (std::string key, std::string value) |
| Create tag from string key and value. | |
| template<typename V > | |
| std::pair< std::string, std::string > | make_tag (const char *key, const V &v) |
| Create tag from C-string key and arbitrary value. | |
| std::string | format_tags (std::initializer_list< std::pair< std::string, std::string > > tags) |
| Format tag list into a single string. | |
| template<typename T > | |
| std::string | make_section (const T &name) |
Format a raw section name as [name]. | |
|
strong |
Queue overflow handling policy used by TaskExecutor and SingleThreadExecutor.
Definition at line 8 of file QueuePolicy.hpp.
|
inline |
Clamp value to inclusive range.
| v | Input value. |
| lo | Lower bound. |
| hi | Upper bound. |
Definition at line 80 of file CompressionWorker.hpp.
|
inline |
Compress a file using the specified compression type.
| type | Compression algorithm to use. |
| src | Path to the source file. |
| level | Compression level. |
| external_cmd | Command template for CompressType::EXTERNAL_CMD. |
Definition at line 184 of file CompressionWorker.hpp.
|
inline |
Compress file using external command.
| src | Source path. |
| cmd_tpl | Command template containing {file} and {level}. |
| level | Compression level. |
Definition at line 172 of file CompressionWorker.hpp.
|
inline |
Compress file using gzip.
| src | Source path. |
| dst_tmp | Temporary output path. |
| level | Compression level. |
Definition at line 91 of file CompressionWorker.hpp.
|
inline |
Compress file using Zstandard.
| src | Source path. |
| dst_tmp | Temporary output path. |
| level | Compression level. |
Definition at line 124 of file CompressionWorker.hpp.
|
inline |
Compress a string with gzip.
| input | Uncompressed data. | |
| [out] | output | Compressed result (valid only on success). |
| level | Compression level 1-9. |
Definition at line 28 of file CompressionUtils.hpp.
|
inline |
Compress a string with zstd.
| input | Uncompressed data. | |
| [out] | output | Compressed result (valid only on success). |
| level | Compression level 1-19. |
Definition at line 131 of file CompressionUtils.hpp.
|
inline |
Definition at line 19 of file MdbxProcessId.hpp.
|
inline |
Decompress gzip-compressed bytes.
| input | Compressed data. | |
| [out] | output | Decompressed result (valid only on success). |
Definition at line 80 of file CompressionUtils.hpp.
|
inline |
Decompress zstd-compressed bytes.
| input | Compressed data. | |
| [out] | output | Decompressed result (valid only on success). |
Definition at line 161 of file CompressionUtils.hpp.
|
inline |
Format tag list into a single string.
| tags | Tags to format. |
Definition at line 47 of file tag_utils.hpp.
|
inline |
Definition at line 27 of file MdbxKeyUtils.hpp.
|
inline |
Format a raw section name as [name].
| T | Section name type supporting operator<<. |
| name | Section name. |
Definition at line 86 of file tag_utils.hpp.
|
inline |
Create tag from C-string key and arbitrary value.
| V | Value type convertible to string. |
| key | Tag name. |
| v | Tag value. |
Definition at line 40 of file tag_utils.hpp.
|
inline |
Create tag from string key and value.
| key | Tag name. |
| value | Tag value. |
Definition at line 30 of file tag_utils.hpp.
|
inline |
Definition at line 15 of file MdbxKeyUtils.hpp.
|
inline |
Definition at line 21 of file MdbxKeyUtils.hpp.
|
inline |
Convert value to string via stream insertion.
| T | Value type supporting operator<<. |
| v | Value to convert. |
Definition at line 20 of file tag_utils.hpp.