pub fn add_file_for(path_prefix: &str, path: &str, append: bool) -> Result<()>
Send this component’s subtree to a file as well — the port of add_logging_handler_hier(logging.FileHandler(...)).
add_logging_handler_hier(logging.FileHandler(...))