gaps.log.make_log_file_handler#
- make_log_file_handler(file_path)[source]#
Make a file handler to add to a Logger instance.
If the directory structure for file_path does not exist, it is created before initializing the FileHandler.
- Parameters:
file_path (str, optional) – Path to the output log file.
- Returns:
handler (logging.FileHandler) – File handler with file_path as the name.