seguro.common.logger.file_logger¶
- seguro.common.logger.file_logger(log_level, log_file, max_bytes=20000, backup_count=5)[source]¶
- Parameters:
log_level (int | str) – Log level for log files
logfile – Path to logfile
max_bytes (int) – (Default value = 20000)
backup_count (int) – (Default value = 5)
log_file (str)
- Returns:
A logging.Logger instance configured for logging into the specified file.
- Return type:
Logger