GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include lastResort in logging HOWTO flow chart · Issue #121035 · python/cpython

Include lastResort in logging HOWTO flow chart #121035

New issue
Copy link
New issue
Copy link
Closed
Closed
Include lastResort in logging HOWTO flow chart#121035
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@bessman
bessman
opened on Jun 26, 2024
Issue body actions

Documentation

The flow chart in the logging HOWTO is very helpful in understanding how the logging module works. However, the flow chart does not make clear why a logger with no configured handlers can still emit records.

The reason is lastResort, which is used if no handlers are found in the logger hierarchy as documented further down in the HOWTO: https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided.

I suggest updating the flow chart to include it.

Linked PRs

  • gh-121035: Update logging flow chart to include lastResort #121036
  • [3.12] gh-121035: Update logging flow chart to include the lastResort handler. (GH-121036) #121105
  • [3.13] gh-121035: Update logging flow chart to include the lastResort handler. (GH-121036) #121106
  • gh-121035: Improve logging flow diagram for dark/light modes. #121254
  • gh-121035: Further improve logging flow diagram with respect to dark/… #121265
  • [3.12] gh-121035: Improve logging flow diagram for dark/light modes. … #121316
  • [3.13] gh-121035: Improve logging flow diagram for dark/light modes. … #121317
  • [3.13] gh-121035: Further improve logging flow diagram with respect t… #121320
  • [3.12] gh-121035: Further improve logging flow diagram with respect t… #121321
  • gh-121035: Update PNG image for logging flow diagram. #121323
  • [3.13] gh-121035: Update PNG image for logging flow diagram. (GH-121323) #121324
  • [3.12] gh-121035: Update PNG image for logging flow diagram. (GH-121323) #121325

Activity

Next
  1. bessman
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Jun 26, 2024
  2. bessman
    added 2 commits that reference this issue on Jun 26, 2024

    pythongh-121035: Update logging flow chart to include lastResort

    a067f92

    pythongh-121035: Update logging flow chart to include lastResort

    ec93c98
  3. serhiy-storchaka
    added this to Logging issues 🪵on Jun 27, 2024
  4. bessman
    added 2 commits that reference this issue on Jun 27, 2024

    pythongh-121035: Update logging flow chart to include lastResort

    fa836c7

    pythongh-121035: Update logging flow chart to include lastResort

    b1ce092
  5. vsajip
    added a commit that references this issue on Jun 27, 2024

    gh-121035: Update logging flow chart to include the lastResort handle…

    237baf4
  6. miss-islington
    added 2 commits that reference this issue on Jun 27, 2024

    pythongh-121035: Update logging flow chart to include the lastResort …

    a351ffc

    pythongh-121035: Update logging flow chart to include the lastResort …

    57d06d0
  7. vsajip
    added 2 commits that reference this issue on Jun 27, 2024

    [3.13] gh-121035: Update logging flow chart to include the lastResort…

    49a01d6

    [3.12] gh-121035: Update logging flow chart to include the lastResort…

    a5048ad
  8. vsajip
    closed this as completedon Jun 27, 2024
  9. github-project-automation
    moved this to Done in Logging issues 🪵on Jun 27, 2024
  10. mrahtz
    added a commit that references this issue on Jun 30, 2024

    pythongh-121035: Update logging flow chart to include the lastResort …

    f9eee51
  11. vsajip
    added a commit that references this issue on Jul 2, 2024

    pythongh-121035: Improve logging flow diagram with respect to dark/li…

    1a438bb
  12. 7 remaining items

  13. vsajip
    added 11 commits that reference this issue on Jul 3, 2024

    [3.12] gh-121035: Improve logging flow diagram for dark/light modes. (G…

    c3f393c

    [3.13] gh-121035: Improve logging flow diagram for dark/light modes. (G…

    b62605d

    [3.13] pythongh-121035: Further improve logging flow diagram with res…

    fbc8714

    [3.12] pythongh-121035: Further improve logging flow diagram with res…

    6c74b20

    [3.12] gh-121035: Further improve logging flow diagram with respect t…

    1081802

    [3.13] gh-121035: Further improve logging flow diagram with respect t…

    3302c5f

    gh-121035: Update PNG image for logging flow diagram. (GH-121323)

    26d24ee

    [3.13] pythongh-121035: Update PNG image for logging flow diagram. (p…

    dfaee7c

    [3.12] pythongh-121035: Update PNG image for logging flow diagram. (p…

    616b8ca

    [3.13] gh-121035: Update PNG image for logging flow diagram. (GH-121323…

    253c033

    [3.12] gh-121035: Update PNG image for logging flow diagram. (GH-121323…

    399e516
  14. estyxx
    added 4 commits that reference this issue on Jul 17, 2024

    pythongh-121035: Update logging flow chart to include the lastResort …

    2cf5930

    pythongh-121035: Improve logging flow diagram for dark/light modes. (p…

    aa70c04

    pythongh-121035: Further improve logging flow diagram with respect to…

    6b681cc

    pythongh-121035: Update PNG image for logging flow diagram. (pythonGH…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dir

    Projects

    • Logging issues 🪵
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.