Expands a log field by adding spaces.
PARAMETER | DESCRIPTION |
field | TYPE: str |
symbols | The desired length of the expanded field. TYPE: int |
Source code in faststream/log/formatter.py
| def expand_log_field(field: str, symbols: int) -> str:
"""Expands a log field by adding spaces.
Args:
field: The log field to expand.
symbols: The desired length of the expanded field.
Returns:
The expanded log field.
"""
return field + (" " * (symbols - len(field)))
|