Skip to content

Use enum class for log level for type safety #1794

Open
@FalcoGer

Description

@FalcoGer

The sink::set_level() expects a level argument.
Currently the levels are defined using #define and a normal enumeration.
A better way would be to use an enum class for type safety. in that case a user can't input random numbers into the function and gets more verbose help from his IDE.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions