src.overwatch.overwatch.get_overwatch

get_overwatch(path: Path, level: int, local_rank: int = 0) Logger[source]

Initialize logging.Logger with the appropriate name, console, and file handlers.

Parameters
  • path – Path for writing log file –> should be identical to run_name (inherited from train.py)

  • level – Default logging level –> should usually be INFO (inherited from train.py).

  • local_rank – Process Rank (default = -1). Only log to level on rank <= 0, otherwise default level is WARN.

Returns

Default “mistral” root logger object :: logging.Logger