Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

set_loglevel documenation and escape hatch#23681

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
tacaswell wants to merge2 commits intomatplotlib:mainfromtacaswell:loggers

Conversation

tacaswell
Copy link
Member

PR Summary

closes#23646

If we want this new flag I'll add a test. I am of two minds on it, we might only want the doc updates.

PR Checklist

Tests and Styling

  • [] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

Parameters
----------
level : {"notset", "debug", "info", "warning", "error", "critical"}
The log level of the handler.

ensure_handler : bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I guess I am not sure why we would add this. A naive enduser unfamiliar with logging won't know what this means, and a library author familiar with logging should know not to call this, particularly given the change to the docstring above. If we do add this, the docstring below probably needs to be clarified.

Copy link
Contributor

@l-johnstonl-johnstonAug 20, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I agree; a documentation update should be sufficient:

  • Add a new section for discussion of logging within Matplotlib - the two use cases as a library and as an application
  • End users can call set_level()
  • For library developers, state that Matplotlib is using the standard librarylogging and its singleton logger is called 'matplotlib' and in their library code get the 'matplotlib' logger and add the desired handler.

@tacaswelltacaswell removed this from thev3.7.0 milestoneOct 20, 2022
@tacaswell
Copy link
MemberAuthor

Consensus is that this is better as just documentation updates.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@l-johnstonl-johnstonl-johnston left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Bug]: matplotlib.set_loglevel() adds a console handler
3 participants
@tacaswell@jklymak@l-johnston

[8]ページ先頭

©2009-2025 Movatter.jp