Logging
mountaineer.logging.setup_logger
setup_logger(name, log_level=logging.DEBUG)
Constructor for the main logger used by Mountaineer. Provided convenient defaults for log level and formatting, alongside coloring of stdout/stderr messages and JSON fields for structured parsing.
mountaineer.logging.log_time_duration
log_time_duration(message)
Context manager to time a code block at runtime.
with log_time_duration("Long computation"):
# Simulate work
sleep(10)