[ CCode ( instance_pos = 2.9 ) ]
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.
logger |
the Logger |
msg |
the message being logged |
user_data |
the data passed to set_request_filter or set_response_filter |
a LoggerLogLevel value indicating how much of the message to log |