I need to zip logs, produced by Boost Logging library. I see 2 approaches:

  1. Compress logs on the fly to BZip or GZip - preferably
  2. Compress logs when rotating (make copy of log and zip it).

How do I implement this?

有帮助吗?

解决方案

Boost has gzip filters, which could be attached to a logging sink.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top