Method: rich.logging.RichHandler.__init__
Calls: 5, Exceptions: 0, Paths: 1Back
Path 1: 5 calls (1.0)
0 (5)
Console (5)
True (5)
True (5)
True (5)
True (5)
False (3) True (2)
None (5)
False (4) True (1)
False (3) True (2)
None (5)
3 (4) 5 (1)
None (5)
True (5)
False (5)
() (5)
10 (5)
80 (5)
'[%x %X]' (5)
None (5)
1def __init__(
2 self,
3 level: Union[int, str] = logging.NOTSET,
4 console: Optional[Console] = None,
5 *,
6 show_time: bool = True,
7 omit_repeated_times: bool = True,
8 show_level: bool = True,
9 show_path: bool = True,
10 enable_link_path: bool = True,
11 highlighter: Optional[Highlighter] = None,
12 markup: bool = False,
13 rich_tracebacks: bool = False,
14 tracebacks_width: Optional[int] = None,
15 tracebacks_extra_lines: int = 3,
16 tracebacks_theme: Optional[str] = None,
17 tracebacks_word_wrap: bool = True,
18 tracebacks_show_locals: bool = False,
19 tracebacks_suppress: Iterable[Union[str, ModuleType]] = (),
20 locals_max_length: int = 10,
21 locals_max_string: int = 80,
22 log_time_format: Union[str, FormatTimeCallable] = "[%x %X]",
23 keywords: Optional[List[str]] = None,
24 ) -> None:
25 super().__init__(level=level)
26 self.console = console or get_console()
27 self.highlighter = highlighter or self.HIGHLIGHTER_CLASS()
28 self._log_render = LogRender(
29 show_time=show_time,
30 show_level=show_level,
31 show_path=show_path,
32 time_format=log_time_format,
33 omit_repeated_times=omit_repeated_times,
34 level_width=None,
35 )
36 self.enable_link_path = enable_link_path
37 self.markup = markup
38 self.rich_tracebacks = rich_tracebacks
39 self.tracebacks_width = tracebacks_width
40 self.tracebacks_extra_lines = tracebacks_extra_lines
41 self.tracebacks_theme = tracebacks_theme
42 self.tracebacks_word_wrap = tracebacks_word_wrap
43 self.tracebacks_show_locals = tracebacks_show_locals
44 self.tracebacks_suppress = tracebacks_suppress
45 self.locals_max_length = locals_max_length
46 self.locals_max_string = locals_max_string
47 self.keywords = keywords