spine.utils.logger
SPINE logging setup and rank-aware output filtering.
Functions
|
Configure the global SPINE logger to emit INFO logs on the main rank. |
Classes
|
Suppress low-priority log records from non-main distributed ranks. |
- class spine.utils.logger.MainProcessFilter(rank: int | None = None)[source]
Suppress low-priority log records from non-main distributed ranks.
Methods
filter(record)Return
Truewhen a record should be emitted.
- spine.utils.logger.configure_rank_logging(rank: int | None = None) None[source]
Configure the global SPINE logger to emit INFO logs on the main rank.
- Parameters:
rank (int, optional) – Current process rank.
Noneand0emit all records. Positive ranks suppress records belowWARNINGunless the log call providesextra={"all_ranks": True}.