log
LoguruFormatter ¶
format ¶
Format a Loguru record.
Example
Source code in stdl/log.py
br ¶
br(c: str = '_', length: int | None = None, handler: Callable[[str], None] = print, *, newline: bool = False) -> None
Print a horizontal line break across the terminal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c
|
str
|
Character to repeat. Defaults to "_". |
'_'
|
length
|
int | None
|
Line length. Defaults to terminal width. |
None
|
handler
|
Callable[[str], None]
|
Function to output the line. Defaults to print. |
print
|
newline
|
bool
|
Whether to append a newline. Defaults to False. |
False
|