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

Feature: Use debug for logging #994

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

cbutcosk
Copy link
Collaborator

@cbutcosk cbutcosk commented Feb 5, 2025

This PR improves logging in quire build processes (npm run build, quire dev, etc) by replacing loglevel with debug-js, the package 11ty also uses for debug logging. The major changes are:

  • Log lines are now expressed in the format: [quire] component:subComponent LEVEL ...message...
  • Log level selection responds to globs on the DEBUG environment variable, so cross-env DEBUG='Eleventy*,*quire*' eleventy will turn on logging for Eleventy itself and for quire while cross-env DEBUG='*quire*' eleventy would only emit quire logs
  • Update documentation of logging concern

Resolves DEV-19108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant