@context.quietfunc
@with_device
def logcat(stream=False):
 if stream:
  return process(['logcat'])
 else:
  return process(['logcat', '-d']).recvall()

@ context . quietfunc @ with_device def logcat ( stream = False ) : if stream : return process ( [ 'logcat' ] ) else : return process ( [ 'logcat' , '-d' ] ) . recvall ( )
reads the system log file .