]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/docs/api/mg_cry.md
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / civetweb / docs / api / mg_cry.md
1 # Civetweb API Reference
2
3 ### `mg_cry( conn, fmt, ... );`
4
5 ### Parameters
6
7 | Parameter | Type | Description |
8 | :--- | :--- | :--- |
9 |**`conn`**|`const struct mg_connection *`|The connection on which a problem occured|
10 |**`fmt`**|`const char *`|Format string without a line return|
11 |**`...`**|*various*|Parameters depending on the format string|
12
13 ### Return Value
14
15 *none*
16
17 ### Description
18
19 The function `mg_cry()` is called when something happens on a connection. The function takes a format string similar to the `printf()` series of functions with parameters and creates a text string which can then be used for logging. The `mg_cry()` function prints the output to the opened error log stream. Log messages can be processed with the `log_message()` callback function specified in the `struct mg_callbacks` structure.
20
21 ### See Also
22
23 * [`struct mg_callbacks;`](mg_callbacks.md)