The prototype for a custom printing callback.
level indicates what kind of information is being printed. Eg, it will be %SOUP_LOGGER_LOG_HEADERS if data is header data.
level
data
direction is either '<', '>', or ' ', and data is the single line to print; the printer is expected to add a terminating newline.
direction
To get the effect of the default printer, you would do:
printf ("%c %s\n", direction, data);
the #SoupLogger
the level of the information being printed.
a single-character prefix to data
data to print
The prototype for a custom printing callback.
level
indicates what kind of information is being printed. Eg, it will be %SOUP_LOGGER_LOG_HEADERS ifdata
is header data.direction
is either '<', '>', or ' ', anddata
is the single line to print; the printer is expected to add a terminating newline.To get the effect of the default printer, you would do: