nl: function logging.getLogger, assign the result to the security_logger. evaluate the function force_text with e as an argument, extra is an dictionary with two pair of elements,
code: security_logger . error ( force_text ( e ) , extra = { 'status_code' : 400 , 'request' : request } )