Skip to content

How to own a Record? Having trouble with fmt::Arguments #282

@agrover

Description

@agrover

I'm working on a logger that acts as a "flight data recorder" -- it holds all log output until commanded to dump it all at once. I'm trying to have my FlightDataLogger compose over another Logger implementation. The problem I'm having is that I'm converting the data in Record to an owned structure (OwnedRecord) that can be stored in a collection, but there's no owned version of fmt::Arguments. I can convert it to a string, but then there's no way (that I can see) to get it back into a fmt::Arguments that I need to build a Record to call the embedded logger's log() function.

Opening this issue on the off chance this is a feature request in disguise. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions