Path 1: 16 calls (1.0)

LogRecord (16)

Text (16)

1def get_level_text(self, record: LogRecord) -> Text:
2        """Get the level name from the record.
3
4        Args:
5            record (LogRecord): LogRecord instance.
6
7        Returns:
8            Text: A tuple of the style and level name.
9        """
10        level_name = record.levelname
11        level_text = Text.styled(
12            level_name.ljust(8), f"logging.level.{level_name.lower()}"
13        )
14        return level_text