@receiver(request_finished, weak=False)<EOL>def request_finished_callback(sender, **kwargs):
logger = logging.getLogger(__name__)<EOL>level = settings.AUTOMATED_LOGGING['<STR_LIT>']['<STR_LIT>']<EOL>user = get_current_user()<EOL>uri, application, method, status = get_current_environ()<EOL>excludes = settings.AUTOMATED_LOGGING['<STR_LIT>']['<STR_LIT>']<EOL>if status and status in excludes:<EOL><INDENT>return<EOL><DEDENT>if method and method.lower() in excludes:<EOL><INDENT>return<EOL><DEDENT>if not settings.AUTOMATED_LOGGING['<STR_LIT>']['<STR_LIT>']:<EOL><INDENT>uri = urllib.parse.urlparse(uri).path<EOL><DEDENT>logger.log(level, ('<STR_LIT>' %<EOL>(user, uri, method, status)).replace("<STR_LIT:U+0020>", "<STR_LIT:U+0020>"), extra={<EOL>'<STR_LIT:action>': '<STR_LIT>',<EOL>'<STR_LIT:data>': {<EOL>'<STR_LIT:user>': user,<EOL>'<STR_LIT>': uri,<EOL>'<STR_LIT>': method,<EOL>'<STR_LIT>': application,<EOL>'<STR_LIT:status>': status<EOL>}<EOL>})<EOL>
This function logs if the user acceses the page