log_summary#
- Profiler.log_summary(level: int = 20, *, min_total_seconds: float = 0.0, target_logger: Logger | None = None) None#
Log the formatted summary to a logger.
Each line of the multi-line summary table is emitted as its own log record so that every line gets the standard formatter prefix (timestamp, level, …). This avoids the bare continuation-line problem that would otherwise hit the table header / rows when the message is wider than the terminal.
- Parameters:
- level
int,optional Log level for the summary message (default:
logging.INFO).- min_total_seconds
float,optional Hide categories whose total time is below this threshold (default: 0.0, show everything).
- target_logger
logging.Logger,optional Logger to log to. If None, uses
lumopt2.utils.profiler(default: None).
- level