Boost has gzip filters, which could be attached to a logging sink.
C++ Boost Logging: how to zip logs?
-
23-03-2022 - |
题
I need to zip logs, produced by Boost Logging library. I see 2 approaches:
- Compress logs on the fly to BZip or GZip - preferably
- Compress logs when rotating (make copy of log and zip it).
How do I implement this?
解决方案
不隶属于 StackOverflow