kempnerforge.metrics.logger¶
Rank-aware logging utilities for KempnerForge.
Provides a simple logging setup that:
Only emits from rank 0 by default (avoids duplicate log lines), except a record logged with
extra={"every_rank": True}, which every rank emitsStarts every line with the local time, to the millisecond, and the rank
Supports color-coded output for key metrics
Integrates with Python’s standard logging module
Functions
|
Format a metrics dict into a compact, color-coded log line. |
|
Get a logger for the given module name. |
- kempnerforge.metrics.logger.get_logger(name, rank_zero_only=True)[source]¶
Get a logger for the given module name.