Miscellaneous Interface Guide¶
Most of the functions in the Traffic Server API provide an interface to specific code modules within Traffic Server. The miscellaneous functions described in this chapter provide some useful general capabilities. They are categorized as follows:
The C library already provides functions such as printf, malloc, and fopen to perform these tasks. The Traffic Server API versions, however, overcome various C library limitations (such as portability to all Traffic Server-support platforms).
Debugging Functions¶
- TSDebug() prints out a formatted statement if you are running Traffic Server in debug mode.
- TSIsDebugTagSet() checks to see if a debug tag is set. If the debug tag is set, then Traffic Server prints out all debug statements associated with the tag.
- TSError() prints error messages to Traffic Server’s error log
- TSAssert() enables the use of assertion in a plugin.
- TSReleaseAssert() enables the use of assertion in a plugin.