Home

Traffic Server Software Developers Kit

INKIsDebugTagSet

Indicates if a particular debug tag is set.

Prototype

void INKError (const char *fmt, ...)

Arguments

fmt is the printf format description.

... is the argument for the format description.

Description

Since it is sometimes useful to log messages when errors occur, Traffic Server provides a global error log file for this purpose. The function INKError is the API interface to this error log. INKError is similar to printf, except that INKError writes output to the Traffic Server error log instead of writing the output to the C standard output. One advantage of INKError over printf is that each call is atomically placed into the error log and is not garbled with other error entries (this is not an issue in single-threaded programs, but is a definite nuisance in multi-threaded programs).

Example
INKError ("couldn't retrieve client request header\n");