def gridLog(**kw):
import os<EOL>if not bool( int(os.environ.get('<STR_LIT>', <NUM_LIT:0>)) ):<EOL><INDENT>return<EOL><DEDENT>url = os.environ.get('<STR_LIT>')<EOL>if url is None: <EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>scheme = url[:url.find('<STR_LIT>')]<EOL>send = GLRegistry[scheme]<EOL>send( url, str(GLRecord(**kw)), )<EOL><DEDENT>except Exception as ex:<EOL><INDENT>print("<STR_LIT>" %(str(kw)), file=sys.stderr)<EOL><DEDENT>
Send GLRecord, Distributed Logging Utilities
    If the scheme is passed as a keyword parameter
    the value is expected to be a callable function
    that takes 2 parameters: url, outputStr

    GRIDLOG_ON   -- turn grid logging on
    GRIDLOG_DEST -- provide URL destination