Skip to content

Switch to root logger in setup_logging#133

Merged
PicoCentauri merged 5 commits intomainfrom
Switch-to-root-logger
Jan 22, 2026
Merged

Switch to root logger in setup_logging#133
PicoCentauri merged 5 commits intomainfrom
Switch-to-root-logger

Conversation

@hejamu
Copy link
Copy Markdown
Collaborator

@hejamu hejamu commented Jan 22, 2026

This PR changes the way mdacli.logger.setup_logging works.

Since mdacli is invoked from the command line, we do not need to worry about handling different loggers. To make things simpler and less error-prone, the method was changed to only work on the root logger.

Software that uses mdacli just configures its loggers (see https://docs.python.org/3/library/logging.html#logger-objects for details on how this should be done) and the logs propagate to the root logger and get handled by mdacli.


📚 Documentation preview 📚: https://mdacli--133.org.readthedocs.build/en/133/

- Clarify setup_logging
- don't filter warnings
@PicoCentauri PicoCentauri merged commit c3bd0a4 into main Jan 22, 2026
11 checks passed
@PicoCentauri PicoCentauri deleted the Switch-to-root-logger branch January 22, 2026 20:50
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.

2 participants