|
| None | __init__ (self, *Any args, bool add_timestamp=False, **Any kwargs) |
| |
| str | get_message_start (self, str formatted, int levelno) |
| |
| str | format (self, logging.LogRecord record) |
| |
|
|
str | default_time_format = "%Y-%m-%dT%H:%M:%S" |
| |
◆ __init__()
| None pip._internal.utils.logging.IndentingFormatter.__init__ |
( |
|
self, |
|
|
*Any |
args, |
|
|
bool |
add_timestamp = False, |
|
|
**Any |
kwargs |
|
) |
| |
A logging.Formatter that obeys the indent_log() context manager.
:param add_timestamp: A bool indicating output lines should be prefixed
with their record's timestamp.
◆ format()
| str pip._internal.utils.logging.IndentingFormatter.format |
( |
|
self, |
|
|
logging.LogRecord |
record |
|
) |
| |
Calls the standard formatter, but will indent all of the log message
lines by our current indentation level.
◆ get_message_start()
| str pip._internal.utils.logging.IndentingFormatter.get_message_start |
( |
|
self, |
|
|
str |
formatted, |
|
|
int |
levelno |
|
) |
| |
Return the start of the formatted log message (not counting the
prefix to add to each line).
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_internal/utils/logging.py