LoggerPrinter
Description:
[ CCode ( instance_pos = 4.9 ) ]
public delegate void LoggerPrinter (Logger logger, LoggerLogLevel level, char direction, string data)
public delegate void LoggerPrinter (Logger logger, LoggerLogLevel level, char direction, string data)
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.
direction
is either '<', '>', or ' ', and data
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:
```c printf ("c s\n", direction, data); ```
Parameters:
logger |
the Logger |
level |
the level of the information being printed. |
direction |
a single-character prefix to |
data |
data to print |
user_data |
the data passed to [method@Logger.set_printer] |
Namespace: Soup
Package: libsoup-3.0