Skip to content

flow.log: Async_file_logger: Add gzip-on-the-fly; gzip chunks; etc. #79

Description

@ygoldfeld

Filed by @ygoldfeld pre-open-source:

(Various services) can output logs directly in gzip form. (gzip? And/or other compression formats too?) Async_file_logger, at least, should support the same. 

The naive thing, which is to output one gzip stream, should be easy with Boost.stream which has a gzip filter (EDIT: but consider other possibilities). The ostream writer in flow.log could be easily adapted to use it.

(colleague) also tells me that (some services) don't output one gzip stream (or maybe it is optional). (They) output little gzip streams (one per message? one per certain # of lines or messages? check), each one valid and then followed by some sentinel or something (check it). The idea is that if the file is corrupted, the non-corrupted parts can still be decoded fine.

So do that too.

All details TBD.

But the general feature is clearly a good one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfrom-akamai-pre-openIssue origin is Akamai, before opening source

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions