Logging configuration for ML Research Tools.

ml_research_tools.core.logging_tools.get_console(theme=None, **kwargs)[source]#

Get a Rich console with optional theme.

Parameters:

theme (Optional[dict]) – Optional theme dictionary for the console

Return type:

Console

Returns:

Rich Console object

ml_research_tools.core.logging_tools.setup_logging(log_level, log_file=None)[source]#

Set up logging configuration.

Parameters:
  • log_level (str) – Logging level.

  • log_file (Optional[str]) – Path to log file. If None, only logs to console.

Return type:

None

ml_research_tools.core.logging_tools.get_logger(name)[source]#

Get a logger with the specified name.

Parameters:

name (str) – Name of the logger.

Return type:

Logger

Returns:

Logger instance.