Skip to content

Configurable logging levels #745

@delucis

Description

@delucis

Pagefind currently supports a --verbose flag to enable more output while running, but doesn’t offer other logging levels to reduce output. This is controlled via this match expression which has Standard and Verbose levels:

https://github.com/CloudCannon/pagefind/blob/596a56e9f35798742ed7023673e69cfec57395e6/pagefind/src/logging.rs#L115-L118

It would be great to have some more control over this as a user. I’m personally looking for an “errors-only” mode, but I guess “silent” and “warnings and above” are also common options in loggers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pagefind CLIThe CLI responsible for indexing contentimprovementNot a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions