Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docs and blurb
  • Loading branch information
adriangb committed May 10, 2022
commit 19561d39e8f6b28f17851a33d700887b6a1e35d2
4 changes: 2 additions & 2 deletions Doc/howto/logging-cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ which, when run, produces something like:
2010-09-06 22:38:15,301 d.e.f DEBUG IP: 123.231.231.123 User: fred A message at DEBUG level with 2 parameters
2010-09-06 22:38:15,301 d.e.f INFO IP: 123.231.231.123 User: fred A message at INFO level with 2 parameters

Imparting contextual information for specific Handlers
------------------------------------------------------
Imparting contextual in Handlers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be contextual information rather than just contextual. Also, no need to capitalise handlers here, as we're not talking about the class.

---------------------------------

Each :class:`~Handler` has it's own chain of Filters.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it's should be its - the former is only used as a contraction of it is. Also, no need to capitalise filters here.

If you want to add contextual information to a :class:`LogRecord` without leaking
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Let :mod:`logging` Filters to return a :class:`logging.LogRecord` instance
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to capitalise filters and handlers here, and also either use Allow filters to return ... or Let filters return ..., as Let ... to ... would be grammatically incorrect. Also, strictly, it would be more accurate to say ... so that filters attached to handlers can enrich ...

so that :class:`logging.Handler`s can enrich records without side effects on
other Handlers.