smah.logs.logs
Functions
|
Configure logging settings. |
- smah.logs.logs.configure(log_level: int = 10, console_log_level: int | None = 30, log_file: str | None = None, max_bytes: int = 1000000, backup_count: int = 3, console_out: ~typing.TextIO = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>) None[source]
Configure logging settings.
- Parameters:
log_level (int) – The logging level.
log_file (Optional[str]) – The path to the log file.
max_bytes (int) – Maximum size of the log file before rotation.
backup_count (int) – Number of backup files to keep.
console_out (TextIO) – The output stream for logging.