def initialize_logger(args):
global log_filename<EOL>log_filename = os.path.join(os.getcwd(), "<STR_LIT>")<EOL>if args.log_file:<EOL><INDENT>_validate_log_file(args.log_file)<EOL>log_filename = args.log_file<EOL><DEDENT>logging.basicConfig(format=_FILE_LOG_FORMAT,<EOL>level="<STR_LIT>",<EOL>datefmt=_DATE_FORMAT,<EOL>filename=log_filename)<EOL>global _verbose<EOL>if args.verbose:<EOL><INDENT>_verbose = args.verbose<EOL><DEDENT>start_time = datetime.now().strftime(_DATE_FORMAT)<EOL>global _logging_dict<EOL>_logging_dict = {'<STR_LIT:user>': getpass.getuser(),<EOL>'<STR_LIT:host>': socket.gethostname(),<EOL>'<STR_LIT>': start_time,<EOL>'<STR_LIT>': args.subparser_name}<EOL>
Sets command name and formatting for subsequent calls to logger