Skip to content

Log compression for structured logging #16475

@weihanglo

Description

@weihanglo

Problem

-Zbuild-analysis has become Cargo's structured logging system, though the current logging infrastructure is still not polished.

https://github.com/rust-lang/cargo/blob/b53c96b634c1ad10174a414c42287a4a399eec77/src/cargo/util/logger.rs

We may need log compression.

Proposed Solution

It is not necessary to have a built-in solution in Cargo. If ever have, we might want to

  • Under build-analysis table, we can have some config file enabling log rotation.
  • We also need to look at the available crates in the ecosystem for log infrastructure.

We should also look at external logging system, and see if there is a possible way for users to easily integrate Cargo with them, and make Cargo there so we don't need to invent the same thing again.

Notes

Part of #15844

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-build-analysisNightly: build-analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions