Boost has gzip filters, which could be attached to a logging sink.
C++ Boost Logging: how to zip logs?
-
23-03-2022 - |
Question
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?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow