#NEWLINE# def run( ) : #NEWLINE# #INDENT# f = NamedTemporaryFile ( ) #NEWLINE# handler = FileHandler ( f . name ) #NEWLINE# log . addHandler ( x ) #NEWLINE# for x in xrange ( 500 ) : #NEWLINE# #INDENT# log . warning ( 'this is handled' )