Files
filament/third_party/civetweb/docs/api/mg_cry.md
Philip Rideout 6d74d31ecd Add civetweb to third_party (MIT).
This is a dependency of our upcoming web-based material debugger. This
CL also includes `tnt/CMakeLists.txt`, which builds a static lib in a
minimal configuration that enables WebSocket support. The entire library
is built from only 4 files:

    ${PUBLIC_HDR_DIR}/CivetServer.h
    ${PUBLIC_HDR_DIR}/civetweb.h
    ${SRC_DIR}/civetweb.c
    ${SRC_DIR}/CivetServer.cpp
2019-08-21 17:45:37 -07:00

880 B

Civetweb API Reference

mg_cry( conn, fmt, ... );

Parameters

Parameter Type Description
conn const struct mg_connection * The connection on which a problem occurred
fmt const char * Format string without a line return
... various Parameters depending on the format string

Return Value

none

Description

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.

See Also