def build_logging_param(logging_uri, util_class=OutputFileParamUtil):
if not logging_uri:<EOL><INDENT>return job_model.LoggingParam(None, None)<EOL><DEDENT>recursive = not logging_uri.endswith('<STR_LIT>')<EOL>oututil = util_class('<STR_LIT>')<EOL>_, uri, provider = oututil.parse_uri(logging_uri, recursive)<EOL>if '<STR_LIT:*>' in uri.basename:<EOL><INDENT>raise ValueError('<STR_LIT>' % uri)<EOL><DEDENT>return job_model.LoggingParam(uri, provider)<EOL>
Convenience function simplifies construction of the logging uri.