LoggerFilter


Description:

public delegate LoggerLogLevel LoggerFilter (Logger logger, Message msg)

The prototype for a logging filter.

The filter callback will be invoked for each request or response, and should analyze it and return a LoggerLogLevel value indicating how much of the message to log. Eg, it might choose between BODY and HEADERS depending on the Content-Type.

Parameters:

logger

the Logger

msg

the message being logged

user_data

the data passed to set_request_filter or set_response_filter

Returns:

a LoggerLogLevel value indicating how much of the message to log


Namespace: Soup
Package: libsoup-2.4