#NEWLINE# def shouldFlush( self , record ) : #NEWLINE# #INDENT# '\n        Check for buffer full or a record at the flushLevel or higher.\n        ' #NEWLINE# return ( ( len ( self . buffer ) >= self . capacity ) or ( record . levelno >= self . flushLevel ) )