Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ setFormatter
Method
setFormatter
Lib/logging/__init__.py:1033–1037 ·
view source on GitHub ↗
Set the formatter for this handler.
(self, fmt)
Source
from the content-addressed store, hash-verified
1031
return
rv
1032
1033
def
setFormatter(self, fmt):
1034
""
"
1035
Set the formatter
for
this handler.
1036
""
"
1037
self.formatter = fmt
1038
1039
def
flush(self):
1040
""
"
Callers
15
_install_handlers
Function · 0.80
configure_handler
Method · 0.80
basicConfig
Function · 0.80
__enter__
Method · 0.80
test_filename
Method · 0.80
setUp
Method · 0.80
test_race
Method · 0.80
test_formatting
Method · 0.80
test_queue_listener_with_multiple_handlers
Method · 0.80
test_handlers
Method · 0.80
test_emit_after_closing_in_write_mode
Method · 0.80
test_rollover
Method · 0.80
Calls
no outgoing calls
Tested by
9
test_filename
Method · 0.64
setUp
Method · 0.64
test_race
Method · 0.64
test_formatting
Method · 0.64
test_queue_listener_with_multiple_handlers
Method · 0.64
test_handlers
Method · 0.64
test_emit_after_closing_in_write_mode
Method · 0.64
test_rollover
Method · 0.64
test_rollover_at_midnight
Method · 0.64