def get_capture_loglevel():
 return getattr(local_context, u'loglevel', None)

def get_capture_loglevel ( ) : return getattr ( local_context , u'loglevel' , None )
if output is currently being redirected to a stream .