Skip to content

Statically enforce that all the logging options are documented #1124

Open
@gallais

Description

@gallais

At the moment we have quite extensive (and everyday expanding) logging options
to get Idris to print more debug output. However these are not documented anywhere
and the best way to discover them is by grepping the source code. This is less
than ideal.

In Idris.Env we use a nifty trick to ensure that all of the environment variables we
attempt to observe in the codebase are thoroughly documented.

It would be nice to have the same enforcement for logging options.

NB: there are 450+ uses of log in the codebase so it'll take a bit of time to
collect all of the existing topics. The documentation part can be left for a future
PR: having an exhaustive list would already be pretty useful!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions