def get_log_file_from_item(history):
try:<EOL><INDENT>log_file, description = shlex.split(history)<EOL><DEDENT>except ValueError:<EOL><INDENT>log_file = history.strip()<EOL><DEDENT>return log_file<EOL>
Return the log file based on provided history item.

Description is optional.