Skip to content

Possibility to have a variable/expression as log level #44

@davidrohr

Description

@davidrohr

I am trying to do something like:

LOG(foo == bar ? warning : error) << "this can be a warning or an error";

Is this possible with fairlogger (without an if/else and 2 LOG statements?
Or would it make sense to extend the API to support such a case?

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