Sets up a filter to determine the log level for a given request.
For each HTTP request this will invoke
request_filter to determine how much (if any) of that
request to log. (If you do not set a request filter, this will just always log requests at the level passed to
the callback for request debugging
a DestroyNotify to free
data to pass to the callback