#NEWLINE# def __call__( self , env , start_response ) : #NEWLINE# #INDENT# env [ 'wsgi.errors' ] = WriteLogger ( self . api_logger . error ) #NEWLINE# self . __logging_request ( env ) #NEWLINE# def start_response_with_logging( status , headers , * args ) : #NEWLINE# #INDENT# self . __logging_response ( env , status ) #NEWLINE# return start_response ( status , headers , * args ) #NEWLINE# #UNINDENT# return self . application ( env , start_response_with_logging )