Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable logging levels #745

Open
delucis opened this issue Nov 25, 2024 · 0 comments
Open

Configurable logging levels #745

delucis opened this issue Nov 25, 2024 · 0 comments
Labels
improvement Not a bug Pagefind CLI The CLI responsible for indexing content

Comments

@delucis
Copy link

delucis commented Nov 25, 2024

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:

let log = match log_level {
LogLevel::Standard => true,
LogLevel::Verbose => matches!(self.log_level, LogLevel::Verbose),
};

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.

@bglw bglw added improvement Not a bug Pagefind CLI The CLI responsible for indexing content labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Not a bug Pagefind CLI The CLI responsible for indexing content
Projects
None yet
Development

No branches or pull requests

2 participants