Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top