accelmo.logs¶
One call to set up logging in the main process of a script.
- accelmo.logs.configure_logging(file=None, *, console_level=logging.WARNING, file_level=logging.INFO)[source]¶
Print
console_leveland above to the terminal and, withfile, writefile_levelto it.The live dashboard hides the console handler while it is on screen and shows warnings in its own strip. Workers write their own files (see
WorkerRuntime.logging_level). Replaces any handlers already on the root logger.- Return type:
None- Parameters:
file (Path | None)
console_level (int)
file_level (int)