![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Background worker that compresses rotated log files. More...
#include <string>#include <queue>#include <thread>#include <mutex>#include <condition_variable>#include <fstream>#include <vector>#include <cstdio>Go to the source code of this file.
Classes | |
| class | logit::detail::CompressionWorker |
| Background worker performing asynchronous compression. More... | |
Namespaces | |
| namespace | logit |
| The primary namespace for the LogIt++ library. | |
| namespace | logit::detail |
Macros | |
| #define | LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONWORKER_HPP_INCLUDED |
Functions | |
| bool | logit::detail::compress_file (CompressType type, const std::string &src, int level, const std::string &external_cmd) |
| Compress a file using the specified compression type. | |
| int | logit::detail::clamp_level (int v, int lo, int hi) |
| Clamp value to inclusive range. | |
| bool | logit::detail::compress_file_gzip (const std::string &src, const std::string &dst_tmp, int level) |
| Compress file using gzip. | |
| bool | logit::detail::compress_file_zstd (const std::string &src, const std::string &dst_tmp, int level) |
| Compress file using Zstandard. | |
| bool | logit::detail::compress_file_external (const std::string &src, const std::string &cmd_tpl, int level) |
| Compress file using external command. | |
Background worker that compresses rotated log files.
Definition in file CompressionWorker.hpp.
| #define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONWORKER_HPP_INCLUDED |
Definition at line 3 of file CompressionWorker.hpp.