Summary
Today, -bl arguments are handled in a last-one-wins manner. This is nonsensical - emitting logs to multiple files is already supported. We need to support multiple binlogs so that different consumers can emit binlogs at specific expected locations, to support automated tooling and other cross-cutting scenarios.
Background and Motivation
N/A
Proposed Feature
- accept multiple -bl flags
- group them by binlog parameters
- for each unique group, create one binary logger that is configured to emit the binlog to a safe temp location
- at the end of the build, the binarylogger will copy+rename that emitted binlog to the location(s) specified by the grouping.
Alternative Designs
No response