ncaa_eval.utils package¶
Submodules¶
Module contents¶
Shared utilities module.
- ncaa_eval.utils.configure_logging(level: str | None = None) None[source]¶
Configure project-wide logging with the given verbosity level.
Resolution order:
Explicit level argument (if not
None).NCAA_EVAL_LOG_LEVELenvironment variable."NORMAL"default.
- Parameters:
level – One of
"QUIET","NORMAL","VERBOSE", or"DEBUG"(case-insensitive).Nonemeans fall through to the environment variable or default.- Raises:
ValueError – If the resolved level name is not recognised.
Example
>>> from ncaa_eval.utils.logger import configure_logging, get_logger >>> configure_logging("VERBOSE") >>> log = get_logger("ingest") >>> log.info("Loading data...")
- ncaa_eval.utils.get_logger(name: str) Logger[source]¶
Return a logger under the
ncaa_evalhierarchy.- Parameters:
name – Dot-separated path appended to the root
ncaa_evallogger (e.g."transform.features"yieldsncaa_eval.transform.features).- Returns:
A logging.Logger instance.
Example
>>> log = get_logger("transform.features") >>> log.info("Computing features for season %d", 2025)