def audit_log(name, **kwargs):
 payload = u', '.join(['{k}="{v}"'.format(k=k, v=v) for (k, v) in sorted(kwargs.items())])
 message = u'{name}: {payload}'.format(name=name, payload=payload)
 log.info(message)

def audit_log ( name , ** kwargs ) : payload = u', ' . join ( [ '{k}="{v}"' . format ( k = k , v = v ) for ( k , v ) in sorted ( kwargs . items ( ) ) ] ) message = u'{name}: {payload}' . format ( name = name , payload = payload ) log . info ( message )
dry helper used to emit an info-level log message .