#NEWLINE# def get_log_dict( self , action , appid , spiderid = None , uuid = None , crawlid = None ) : #NEWLINE# #INDENT# '\n        Returns a basic dictionary for logging\n        @param action: the action taken by the redis monitor\n        @param spiderid: the spider id\n        @param appid: the application id\n        @param uuid: a unique id of the request\n        @param crawlid: a unique crawl id of the request\n        ' #NEWLINE# extras = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# extras [ 'action' ] = action #NEWLINE# extras [ 'appid' ] = appid #NEWLINE# if ( spiderid is not None ) : #NEWLINE# #INDENT# extras [ 'spiderid' ] = spiderid #NEWLINE# #UNINDENT# if ( uuid is not None ) : #NEWLINE# #INDENT# extras [ 'uuid' ] = appid #NEWLINE# #UNINDENT# if ( crawlid is not None ) : #NEWLINE# #INDENT# extras [ 'crawlid' ] = crawlid #NEWLINE# #UNINDENT# return extras