set_request_filter


Description:

public void set_request_filter (owned LoggerFilter request_filter)

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 [ctor@Logger.new].)

Parameters:

this

a Logger

request_filter

the callback for request debugging

destroy

a DestroyNotify to free filter_data

filter_data

data to pass to the callback